Game Development Reference
In-Depth Information
7.
Set the Loop Time on for idle, travel, strafe, and armed.
8.
Check “Bake Into Pose” for “Root Transform Position (Y)” for all of the clips.
9.
Click Apply at the bottom of the Inspector.
The Mecanim State Engine
Now you will create an Animator controller for the gnome and get serious with Mecanim's powerful
state engine. This time, you will be taking full advantage of the states, transitions, and parameters
that will connect the scripts to the engine to control the character in the scene.
This character has two states he will go between for the time being.
1.
Drag the GardenGnome into the Scene view onto the walkway (Figure 6-19 ).
Figure 6-19. The GardenGnome in the Scene view
2.
Select the Animated Assets folder, and create a new Animation Controller in it.
3.
Name it Gnome Controller , and drag it onto the GardenGnome in the
Hierarchy view.
4.
Double-click the Gnome Controller in the Project view or from the gnome's
Animator component to open it in the Animator view.
5.
Expand the GardenGnome asset in the Project view, and drag the Gnome
travel and Gnome idle clips into the Animator view in that order.
6.
Click Play.
 
Search WWH ::




Custom Search