O'Reilly logo

Learning Unity 2D Game Development by Example by Venita Pereira

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding our character

Now that we have sliced our sprite sheet and our character sprite assets are ready, we now need to add our character to the game by creating a sprite GameObject.

To do so, we simply drag the selected sprite asset (in this case, we will use the body as our main GameObject) from the Project Browser as shown in the following screenshot:

Adding our character

Then, we drop it into the Hierarchy tab as shown in the following screenshot:

Adding our character

To make it clearer, we rename the body GameObject to a character as it will act as the character GameObject consisting of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required