Animation.Rewind Manual     Reference     Scripting  
Scripting > Runtime Classes > Animation
Animation.Rewind

function Rewind (name : string) : void

Description

Rewinds the animation named name.

// Rewind the walk animation to the start
animation.Rewind("walk");

function Rewind () : void

Description

Rewinds all animations

// Rewind all animations to the start
animation.Rewind();