Skip to main content

WrapMode

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

Elements

ElementDescription
WrapMode.ClampForeverPlays back the animation. When it reaches the end, it will keep playing the last frame and never stop playing.
WrapMode.DefaultReads the default repeat mode set higher up.
WrapMode.LoopWhen time reaches the end of the animation clip, time will continue at the beginning.
WrapMode.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.
WrapMode.PingPongWhen time reaches the end of the animation clip, time will ping pong back between beginning and end.