Skip to main content

Animator.SetLayerWeight(number layerIndex, number weight)

Sets the weight of the layer at the given index.

Parameters:

NameTypeDescription
layerIndexnumberThe layer index.
weightnumberThe new layer weight.

Usage

---@type Animator
local animator;

---@type number
local layerIndex;

---@type number
local weight;


animator.SetLayerWeight(layerIndex, weight)