← Game Development with Unity learning pathGame Development with Unity · Module 2 of 10
GameObjects and components
Build everything from GameObjects with components.
📖 Key ideas
- Everything in a scene is a GameObject.
- Components add behaviour: Transform, Rigidbody, Collider, scripts.
- Transform stores position, rotation and scale.
- Prefabs are reusable GameObject templates.
- Organise with parent-child hierarchy.
💡 Real-life example: A GameObject is an empty doll; components are clothes and abilities you attach.
GameObjectBasic object in a scene
ComponentAdds functionality to a GameObject
TransformPosition, rotation, scale
PrefabReusable template object