Game Development Reference
In-Depth Information
Adding your first animation clip (idle)
To add your first animation clip, create a new clip by opening the clip selection drop-
down menu and selecting
[Create New Clip]
(as shown earlier in the
Animator Dope
Sheet
section, marked as item 2). This will prompt you for a location to save the new clip.
Save it under
Assets/Animation/Clips
as
CharacterIdle.anim
.
For the idle animation, we only need to add one sprite to show the hero standing at rest, so
drag the sprite named
01_5
onto the timeline at position
0
, as shown here:
The
Animation
controller should now look like the following screenshot, with a single
state for the idle animation (highlighted in orange to denote it is in the default state):