Game Development Reference
In-Depth Information
Note the “Apply Root Motion” check box. This specifies whether or not the object's roots transforms
will be used to move it in the scene.
5.
Click Play.
Unlike the Legacy animation, the Mecanim rigs do not animate immediately. For that, you will need
to create an Animator Controller. That is how Mecanim's state machine is accessed.
6.
Stop Play Mode.
7.
In the Project view, right-click over the Animated Assets folder, and from the
Create menu, select Animator Controller.
8.
Name the new Animator Controller Zombie Bunny Controller .
9.
Drag it onto the ZombieBunny in the Hierarchy view.
The controller is automatically assigned to the Controller parameter (Figure 6-12 ).
Figure 6-12. The new Animator Controller in the Animator component
Now you can set up the state engine. This one is easy, as it only has one state.
1.
Double-click on the Zombie Bunny Controller in the project view.
The Animator view opens in a new tab next to the Scene and Game views (Figure 6-13 ).
 
Search WWH ::




Custom Search