用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:enumerations:wrapmode:wrapmode

WrapMode 循环模式

enumeration

Description 描述

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.

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

Variables 变量

OnceWhen time reaches the end of the animation clip, the clip will automatically stop playing and time will be reset to beginning of the clip.
当时间到达动画剪辑的结尾,该剪辑将自动停止播放。也就是动画只播放一次。
LoopWhen time reaches the end of the animation clip, time will continue at the beginning.
当时间到达动画剪辑的结尾,时间将跳到开始继续播放。
PingPongWhen time reaches the end of the animation clip, time will ping pong back between beginning and end.
当时间到达动画剪辑的结尾,时间将在开始和结束之间,像乒乓一样来回播放。
DefaultReads the default repeat mode set higher up.
从上级设置,读取默认的循环模式。
ClampForeverPlays back the animation. When it reaches the end, it will keep playing the last frame and never stop playing.
回放动画。当达到结尾,它会继续播放最后一帧,永不停止播放。
script/unityengine/enumerations/wrapmode/wrapmode.txt · 最后更改: 2016/08/22 06:21 由 hulang