Animator.SetLayerWeight(number layerIndex, number weight)
Sets the weight of the layer at the given index.
Parameters:
Name | Type | Description |
---|---|---|
layerIndex | number | The layer index. |
weight | number | The new layer weight. |
Usage
---@type Animator
local animator;
---@type number
local layerIndex;
---@type number
local weight;
animator.SetLayerWeight(layerIndex, weight)