natiny_animator_get_playing

C
bool natiny_animator_get_playing(NatinyAnimator animator);

Returns the animator's playback state.

Parameters

Name Type Description
animator NatinyAnimator Animator handle from natiny_animator_create

Returns

Type Description
bool true after natiny_animator_play until playback is paused, stopped, or a non-looping clip with a positive duration reaches an end; false for an invalid handle

Example

C
if (!natiny_animator_get_playing(hero_action))
    natiny_animator_play(hero_action, idle, 0.2f);