Skip to content

Api > Animator > GetNextAnimatorStateInfo()


Animator.GetNextAnimatorStateInfo(number layerIndex)⚓︎

Returns an AnimatorStateInfo with the information on the next state.

Parameters:⚓︎

Name Type Description
layerIndex number The layer index.

Returns:⚓︎

type Description
AnimatorStateInfo An AnimatorStateInfo with the information on the next state.

Usage⚓︎

---@type Animator
local animator;

---@type number
local layerIndex;


local val0 = animator.GetNextAnimatorStateInfo(layerIndex)