← Game Development with Unity learning path
Game Development with Unity · Module 2 of 10

GameObjects and components

Build everything from GameObjects with components.

📖 Key ideas

  1. Everything in a scene is a GameObject.
  2. Components add behaviour: Transform, Rigidbody, Collider, scripts.
  3. Transform stores position, rotation and scale.
  4. Prefabs are reusable GameObject templates.
  5. 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