Game Development Reference
In-Depth Information
Flat, in this case, refers to the tangency handles being horizontal or “flat.” Feel free to switch from
the Dope Sheet to the Curves view, select the keys, and press F to frame them and check out the
curve (Figure 10-25 ).
Figure 10-25. The looping ease-in/ease-out curve
10.
Close the Animation panel.
The next step is to turn off the Loop wrap type. Aside from preventing the animation from looping,
this will also “hold” the object in its final position as long as it remains in that state. When you turn
on the Weapon Up state, the panel will go up and stay there until it is told to go to a different state.
11.
Select the Weaponry Up clip in the GUI Assets folder, and uncheck its Loop
Time in the Inspector.
When you created the clip, an Animator component was automatically created.
1.
Select the Weaponry object in the Hierarchy view.
2.
Double-click on its Animator component's Controller parameter to open the
Animator view.
3.
Clone the Weaponry Up state by right-clicking and choosing Copy, and then
right-click and choose Paste.
4.
Rename it Weaponry Down , and set its Speed to -1 .
5.
Right-click over it in the view, and select Set as Default (Figure 10-26 ).
 
Search WWH ::




Custom Search