Skip to main content

Animator.GetCurrentAnimatorClipInfoCount(number layerIndex)

Returns the number of AnimatorClipInfo in the current state.

Parameters:

NameTypeDescription
layerIndexnumberThe layer index.

Returns:

typeDescription
numberThe number of AnimatorClipInfo in the current state.

Usage

---@type Animator
local animator;

---@type number
local layerIndex;


local val0 = animator.GetCurrentAnimatorClipInfoCount(layerIndex)