natiny_animator_get_loop
bool natiny_animator_get_loop(NatinyAnimator animator);
Returns whether looping is enabled for this animator.
Parameters
| Name | Type | Description |
|---|---|---|
animator |
NatinyAnimator |
Animator handle from natiny_animator_create |
Returns
| Type | Description |
|---|---|
bool |
true when the clip loops; false for an invalid handle |
Example
bool looping = natiny_animator_get_loop(hero_legs);
printf("%s\n", looping ? "looping" : "one shot");