WrapMode 循环模式
Enumeration
Determines how time is treated outside of the keyframed range of an AnimationClip or AnimationCurve.
确定AnimationClip 或 AnimationCurve 关键帧范围之外的时间如果处理。
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值
-
When time reaches the end of the animation clip, the clip will automatically stop playing.
当时间到达动画剪辑的结尾,该剪辑将自动停止播放。 -
When time reaches the end of the animation clip, time will continue at the beginning.
当时间到达动画剪辑的结尾,时间将跳到开始继续播放。 -
When time reaches the end of the animation clip, time will ping pong back between beginning and end.
当时间到达动画剪辑的结尾,时间将在开始和结束之间,像乒乓一样来回播放。 -
Reads the default repeat mode set higher up.
从上级设置,读取默认的循环模式。 -
Plays back the animation. When it reaches the end, it will keep playing the last frame and never stop playing.
回放动画。当达到结尾,它会继续播放的最后一帧,永不停止播放。