GetCurrentAnimatorClipInfo
7/14/25Less than 1 minute
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)
