natiny.animator.get_order

Lua
natiny.animator.get_order(animator) -> order

Returns where this layer sits in the stack.

Parameters

Name Type Description
animator number Animator handle from natiny.animator.create

Returns

Type Description
integer The signed 32-bit layer order; 0 for a stale nonzero animator handle

Example

Lua
local order = natiny.animator.get_order(arms)
print("upper-body layer order: " .. order)