natiny_animator_set_order

C
void natiny_animator_set_order(NatinyAnimator animator, int32_t order);

Sets where this layer sits in the stack: layers are blended low order first, so a higher one is applied over what the lower ones left.

Parameters

Name Type Description
animator NatinyAnimator Animator handle from natiny_animator_create
order int32_t Signed 32-bit layer order from -2147483648 to 2147483647; initially 0

Example

C
natiny_animator_set_order(legs, 0);
natiny_animator_set_order(arms, 1);