Game Development Reference
In-Depth Information
Figure 5-39. Transition properties in the Inspector
Tip You can drag the state boxes around to keep them organized, and pressing Alt while dragging in the
Animator window moves the entire grid.
You have different conditions to choose from to trigger the transition. The default Exit Time property
of 0.92 means that the transition will trigger when the clip is 92% through. In the Hierarchy panel,
select the zombie_lowres game object, then in the Inspector change the Animator Controller to
ZombieLocomotionController either by dragging the controller from the project panel into the
property field in the Inspector or by clicking the circle select button to the right of the Controller
property and choosing ZombieLocomotionController from the pop-up menu.
Playtest, and you'll see that the zombie begins in the Idle state, then automatically transitions to the
Walk state based on the Exit Time condition. You can experiment with smoothing the transition in
the Inspector by dragging the blue start and end values of the graphic overlap between the Idle and
Walk clips. Exit Play mode and save the scene.
 
Search WWH ::




Custom Search