natiny.animator.stop

Lua
natiny.animator.stop(animator)

Stops the animator and rewinds it to the start of its clip.

Parameters

Name Type Description
animator number Animator handle from natiny.animator.create

Example

Lua
natiny.animator.stop(hero_legs)

Notes

  • The current clip is kept, but play must be called to start it again and restarts it from the beginning. A cross-fade in progress is dropped.