Skip to main content

Animator.GetLayerIndex(string layerName)

Returns the index of the layer with the given name.

Parameters:

NameTypeDescription
layerNamestringThe layer name.

Returns:

typeDescription
numberThe layer index.

Usage

---@type Animator
local animator;

---@type string
local layerName;


local val0 = animator.GetLayerIndex(layerName)