Exercises

Now that we have our Player GameObject, let’s set up a few more elements to prepare for Chapter 3, “Creating 2D Sprites”:

1. Select the Player Prefab from the _prefabs folder.

2. In the Inspector, make sure you have selected the Player GameObject and select Add Component.

3. Select Miscellaneous > Animation Component. This will attach a blank Animation Component to our Player GameObject. We will go into this in the next chapter, but we can assign this as we will be using it for our player.

4. Select the Player GameObject from the Hierarchy to ensure that the new feature has been added to the GameObject already in our Scene.

5. Now we need to save our Scene. Choose File > Save Scene As . . . , make sure you are under the Project > _scenes ...

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.