Skip to main content

Animator.GetCurrentAnimatorClipInfo(number layerIndex)

Returns an array of all the AnimatorClipInfo in the current state of the given layer.

Parameters:

NameTypeDescription
layerIndexnumberThe layer index.

Returns:

typeDescription
AnimatorClipInfo[]an array of all the AnimatorClipInfo in the current state of the given layer.

Usage

---@type Animator
local animator;

---@type number
local layerIndex;


local val0 = animator.GetCurrentAnimatorClipInfo(layerIndex)