natiny_animator_set_loop

C
void natiny_animator_set_loop(NatinyAnimator animator, bool loop);

Sets whether the clip starts again when it reaches its end, or stops there.

Parameters

Name Type Description
animator NatinyAnimator Animator handle from natiny_animator_create
loop bool true to wrap round, false to stop at the last frame

Example

C
natiny_animator_set_loop(hero_legs, true);