natiny_animator_get_order
int32_t natiny_animator_get_order(NatinyAnimator animator);
Returns where this layer sits in the stack.
Parameters
| Name | Type | Description |
|---|---|---|
animator |
NatinyAnimator |
Animator handle from natiny_animator_create |
Returns
| Type | Description |
|---|---|
int32_t |
The signed 32-bit layer order; 0 for an invalid handle |
Example
int32_t order = natiny_animator_get_order(arms);
printf("upper-body layer order: %d\n", (int)order);