Animator.GetLayerIndex(string layerName)
Returns the index of the layer with the given name.
Parameters:
Name | Type | Description |
---|---|---|
layerName | string | The layer name. |
Returns:
type | Description |
---|---|
number | The layer index. |
Usage
---@type Animator
local animator;
---@type string
local layerName;
local val0 = animator.GetLayerIndex(layerName)