Game Development Reference
In-Depth Information
Figure 6-13.
The Animator view of the Mecanim state machine
The controller currently showing is listed at the lower right of the window.
To add a state, you can right-click and choose Add New State, or you can drag a clip directly into
the window. The latter approach sets the name for you and will save a few steps.
2.
Drag the Bunny Eat clip into the Animator view.
A default state (it is orange colored) is created, named, and preloaded with the Bunny Eat animation
(Figure
6-14
).
Figure 6-14.
The default Bunny Eat state
The Speed, 1, denotes the original speed of the clip. A speed of .5 would be half as fast, and 2
would be twice as fast.
3.
Click Play, and watch the ZombieBunny in the Game view.
The ZombieBunny will slowly work its way along the walkway, munching as it goes.
4.
Select it in the Hierarchy view, and switch back to the Animator view.