Skip to content

Api > Animator > GetCurrentAnimatorClipInfo()


Animator.GetCurrentAnimatorClipInfo(number layerIndex)⚓︎

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

Parameters:⚓︎

Name Type Description
layerIndex number The layer index.

Returns:⚓︎

type Description
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)