Skip to main content

Animator.GetLayerWeight(number layerIndex)

Returns the weight of the layer at the specified index.

Parameters:

NameTypeDescription
layerIndexnumberThe layer index.

Returns:

typeDescription
numberThe layer weight.

Usage

---@type Animator
local animator;

---@type number
local layerIndex;


local val0 = animator.GetLayerWeight(layerIndex)