natiny_animator_stop

C
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

C
natiny_animator_stop(hero_legs);

Notes

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