LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

Animator.GetLayerWeight

Switch to Manual
public float GetLayerWeight(int layerIndex);

Parameters

layerIndexThe layer index.

Returns

float The layer weight.

Description

Returns the weight of the layer at the specified index.