Now that we have the major components of the appearance of our character, we need to create it in the game world.
In the Hierarchy tab, on the left-hand side of the Editor window, right-click and select Create New.
This will add an empty GameObject to your scene.
Tip
If you still have the Animator window open, click on the Scene tab at the top of the Editor window.
Make sure that the new empty GameObject is selected. Click on Add Component at the right-hand side of the Editor window in the Inspector tab.
Search for Sprite Renderer and click on Sprite Renderer from the list.
In the
Assets/Character
folder, selectCharacterSheet
and click and drag it onto the Sprite section of Sprite Renderer.You'll see that the sprite gets named as the first child element of the
CharacterSheet
object:CharacterSheet_0
. This is correct and fine.Next, we need to add an Animator component to GameObject.
In the Inspector window, click on Add Component.
Search for Animator and then click...