GameObjects are things we use in our game, such as 2D objects, 3D objects, audio, cameras, lights, user interfaces, and visual effects. GameObjects have properties, which vary based on their type, and components. Components can consist of things such as scripts, animations, and more. You will learn a lot about GameObjects and how to work with them as we continue to work on our game.
GameObjects are composed of components. As you can see in the following screenshot of the Inspector panel, our game's Main Camera has four components: Transform, Camera, GUI Layer, Flare Layer, and Audio Listener:
At the bottom of the Inspector panel is the Add Component button. That button gives us access to Unity's components using the following categories:
- Mesh
- Effects
- Physics
- Physics 2D
- Navigation
- Audio
- Video
- Rendering
- Layout
- Playables
- AR
- Miscellaneous
- Analytics
- Scripts
- Event
- Network
- UI
- New Script