Game Development Reference
In-Depth Information
Figure 5-18. Zombie running animation clip in the Unity Asset Store
Select the animation clip in the Animations folder so its properties appear in the Inspector. At the
top, check the Loop Time box. Unchecked, the zombie performs one cycle of a running stride with
left and right legs. Looping the animation means the zombie will continue to run.
Create an Animator Controller
Now that you have a character and an animation, you need a controller to play it. The Animator
Controller is the game object component used to connect the behavior of animation clips to the
game object model.
First select the Assets folder, then select Create ➤ Folder and name it Animator Controllers, then
double-click it to open it. Next select Create ➤ Animator Controller and name it zombieController01.
Double-click zombieController01 to open it in the Animator view (Figure 5-19 ).
 
Search WWH ::




Custom Search