WrapMode
Determines how time is treated outside of the keyframed range of an AnimationClip or AnimationCurve.
Elements
Element | Description |
---|---|
WrapMode.ClampForever | Plays back the animation. When it reaches the end, it will keep playing the last frame and never stop playing. |
WrapMode.Default | Reads the default repeat mode set higher up. |
WrapMode.Loop | When time reaches the end of the animation clip, time will continue at the beginning. |
WrapMode.Once | When time reaches the end of the animation clip, the clip will automatically stop playing and time will be reset to beginning of the clip. |
WrapMode.PingPong | When time reaches the end of the animation clip, time will ping pong back between beginning and end. |