natiny_animator_stop
void natiny_animator_stop(NatinyAnimator animator);
Stops the animator and rewinds it to the start of its clip.
Parameters
| Name | Type | Description |
|---|---|---|
animator |
NatinyAnimator |
Animator handle from natiny_animator_create |
Example
natiny_animator_stop(hero_legs);
Notes
- The current clip is kept, but
natiny_animator_playmust be called to start it again and restarts it from the beginning. A cross-fade in progress is dropped.