WrapMode Manual     Reference     Scripting  
Scripting > Enumerations > WrapMode
WrapMode Enumeration

Determines how time is treated where no keyframes are defined.

Values
Once

When time reaches the end of the animation clip, the clip will automatically stop playing.

Loop

When time reaches the end of the animation clip, time will continue at the beginning

PingPong

When time reaches the end of the animation clip, time will ping pong back between beginning and end

Default

Reads the repeat mode from the animation curves, which can be set to Loop or PingPong.

ClampForever

Plays back the animation. When it reaches the end, it will keep playing the last frame and never stop playing.