Skip to main content

Animator.GetNextAnimatorStateInfo(number layerIndex)

Returns an AnimatorStateInfo with the information on the next state.

Parameters:

NameTypeDescription
layerIndexnumberThe layer index.

Returns:

typeDescription
AnimatorStateInfoAn AnimatorStateInfo with the information on the next state.

Usage

---@type Animator
local animator;

---@type number
local layerIndex;


local val0 = animator.GetNextAnimatorStateInfo(layerIndex)