WrapMode 循环模式

Enumeration

Determines how time is treated outside of the keyframed range of an AnimationClip or AnimationCurve.

确定AnimationClipAnimationCurve 关键帧范围之外的时间如果处理。

The WrapMode that the animation system uses for a specific animation is determined this way: You can set the WrapMode of an AnimationClip in the import settings of the clip. This is the recommended way to control the WrapMode. When an AnimationState is created, it inherits its WrapMode from the AnimationClip it is created from, but you can also change it from code. If the WrapMode of an AnimationState is set to Default, the animation system will use the WrapMode from the Animation component. If the WrapMode of the Animation component is also set to Default, the animation system will use the WrapMode from the individual AnimationCurves in the clip.

动画系统的WrapMode,用于一个特定的动画被确定以这种方式:设置剪辑的导入设置中AnimationClip的WrapMode,这是推荐的方法,来控制WrapMode。当AnimationState被创建,从AnimationClip继承它的WrapMode,但你也可以从代码改变它。如果AnimationState的WrapMode设置为默认,动画系统将从Animation组件使用WrapMode。如果Animation组件的WrapMode也被设置为默认,动画系统将从剪辑的单个AnimationCurves使用WrapMode。

Values

最后修改:2011年5月25日 Wednesday 14:36

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。