Game Development Reference
In-Depth Information
9. Once you are happy with your animation, toggle the record button to stop
the recording. You will notice a new animation in your assets folder with the
name you provided when you first clicked on record.
10. Drag-and-drop this animation into the first Animation field of the animation
component on the pole object. Note that while this component supports play-
ing and blending between multiple animations, it must be driven through
scripting.
11. Make sure the Play Automatically checkbox is enabled to see your anima-
tion, without having to tie it to any script.
Congratulations! You have now successfully created a custom animation with the in-
editor animation tool. To take this to the next level, feel free to explore the different
playback modes on the animation assets themselves as well as ways of firing off
methods from an animation curve with events. Remember, even slight changes to
the properties of GameObjects in the scene will be recorded as animations
Search WWH ::




Custom Search