Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Animator.GetLayerWeight

Switch to Manual
GetLayerWeight(layerIndex: int): float;
float GetLayerWeight(int layerIndex);
def GetLayerWeight(layerIndex as int) as float

Parameters

layerIndexThe layer's index.

Description

Gets the layer's current weight.