Skip to content

format

typescript
Animation.Stop(name)

class: Animation

description

Stops the currently playing animation clip.

If no animation clip name is specified, it stops all animation clips. Otherwise, it stops the animation clip with the specified name. Stopping an animation clip also rewinds it to the beginning.

parameter

param_nametypedescription
namestringThe name of the animation clip.

reture

typedescription
void

code example

javascript