Skip to content

Api > Animator > GetCurrentAnimatorClipInfoCount()


Animator.GetCurrentAnimatorClipInfoCount(number layerIndex)⚓︎

Returns the number of AnimatorClipInfo in the current state.

Parameters:⚓︎

Name Type Description
layerIndex number The layer index.

Returns:⚓︎

type Description
number The number of AnimatorClipInfo in the current state.

Usage⚓︎

---@type Animator
local animator;

---@type number
local layerIndex;


local val0 = animator.GetCurrentAnimatorClipInfoCount(layerIndex)