Skip to content

Api > Animator > GetLayerWeight()


Animator.GetLayerWeight(number layerIndex)⚓︎

Returns the weight of the layer at the specified index.

Parameters:⚓︎

Name Type Description
layerIndex number The layer index.

Returns:⚓︎

type Description
number The layer weight.

Usage⚓︎

---@type Animator
local animator;

---@type number
local layerIndex;


local val0 = animator.GetLayerWeight(layerIndex)