natiny_animator_get_animation

C
NatinyAnimation natiny_animator_get_animation(NatinyAnimator animator);

Returns the animator's current clip without changing playback state.

Parameters

Name Type Description
animator NatinyAnimator Animator handle from natiny_animator_create

Returns

Type Description
NatinyAnimation Animation handle, or 0 when no current clip is assigned or the animator is invalid

Example

C
NatinyAnimation clip = natiny_animator_get_animation(hero_legs);
if (clip != 0) printf("%s\n", natiny_animation_get_name(clip));