Legacy animation system

Prior to the introduction of Mecanim, Unity used its own animation system and for backward compatiblity, this system is still available. The main reason for using legacy animation is to continue working with an old project without the work of updating it for Mecanim. However, it is not recommended that you use the legacy system for new projects.

Working with legacy animations

To import a legacy animation, you first need to mark it as such in the Mesh importer's Rig tab:-

The Animation tab on the importer will then look something like this:

Import AnimationSelects whether or not animation should be imported at all.
Wrap ModeThe method of handling what happens when the animation comes to an end:-
DefaultUses whatever setting is specified in the animation clip.
OncePlay the clip to the end and then finish.
LoopPlay to the end, then immediately restart from the beginning.
PingPongPlay to the end, then play from the end in reverse, and so on.
ForeverPlay to the end, then loop the last frame indefinitely.
Anim CompressionSettings to attempt to remove redundant information from clips.
OffNo compression.
Keyframe reductionAttempt to remove keyframes where differences are too small to be seen
Keyframe reduction and compressionAs for Keyframe reduction, but clip data is also compressed.
Rotation errorMinimum difference in rotation values (in degrees), below which two keyframes are counted as equal.
Position errorMinimum difference in position (as a percentage of coordinate values), below which two keyframes are counted as equal.
Rotation errorMinimum difference in scale (as a percentage of coordinate values), below which two keyframes are counted as equal.

Below the properties in the inspector is a list of animation clips. When you click on a clip in the list, an additional panel will appear below it in the inspector:-

The Start and End values can be changed to allow you to use just a part of the original clip (see the page on |splitting animations for further details). The Add Loop Frame option adds an extra keyframe to the end of the animation that is exactly the same as the keyframe at the start. This enables the animation to loop smoothly even when the last frame doesn't exactly match up with the first. The Wrap Mode setting is identical to the master setting in the main animation properties but applies only to that specific clip.

Page last updated: 2013-01-02