GameObjects and Components
Unity uses a component-based architecture.
GameObjects
A GameObject is the base object in a Unity scene.
Examples include:
- player characters
- cameras
- lights
- UI elements
Components
Components define behavior.
Common components:
- Transform
- Rigidbody
- Collider
- MeshRenderer
Example
A player object might include:
- Transform
- CapsuleCollider
- Rigidbody
- PlayerController script