WrapMode

enumeration

Switch to Manual

Description

确定在 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.

Variables

Once当时间到达动画剪辑末尾时,剪辑自动停止播放,时间重置到剪辑开始处。
Loop当时间到达动画剪辑末尾时,将从开始处继续。
PingPong当时间到达动画剪辑末尾时,时间将在开始和末尾之间往返。
Default读取更高层级设置的默认重复模式。
ClampForever向后播放动画。到达末尾时,将继续播放上一帧,永远不会停止播放。