Our First GameObject

When we made our LearningUnity Project, Unity created our first GameObject for us in our Scene called Main Camera. In order to view and play our game, it must have a camera to render the game assets for us to see and interact with. Just as a movie uses a camera to record the actors and scenes, we use a camera to view our characters and levels.

In our Scene View, there should be an icon that resembles an old-fashioned film camera from the side. Select the Main Camera by either clicking this camera icon in the Scene View or by clicking the Main Camera text in the Hierarchy window. We can tell that our Main Camera GameObject is selected by the colored Transform Gizmo handles that are visible in the Scene View (Figure 2.4). We ...

Get Learning 2D Game Development with Unity®: A Hands-On Guide to Game Creation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.