natiny.animator.stop
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
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.