Version: 2017.2
在 Unity 4 中管理资源依赖关系
Animation

Legacy Animation System

在引入 Mecanim 之前,Unity 使用过一种更简单的动画系统。为了向后兼容,该系统仍然可用。使用旧版动画系统的主要原因是可以继续直接处理旧项目,而无需为了 Mecanim 更新该项目。但是,建议不要将旧版系统用于新项目。

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 Animation Selects whether or not animation should be imported at all.
Wrap Mode The method of handling what happens when the animation comes to an end:-
        Default Uses whatever setting is specified in the animation clip.
        Once Play the clip to the end and then finish.
        Loop Play to the end, then immediately restart from the beginning.
        PingPong Play to the end, then play from the end in reverse, and so on.
        Forever Play to the end, then loop the last frame indefinitely.
Anim Compression Settings to attempt to remove redundant information from clips.
        Off No compression.
        Keyframe reduction Attempt to remove keyframes where differences are too small to be seen
        Keyframe reduction and compression As for Keyframe reduction, but clip data is also compressed.
Rotation error Minimum difference in rotation values (in degrees), below which two keyframes are counted as equal.
Position error Minimum difference in position (as a percentage of coordinate values), below which two keyframes are counted as equal.
Rotation error Minimum 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.

在 Unity 4 中管理资源依赖关系
Animation