Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

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

IAnimatorControllerPlayable.SetLayerWeight

public void SetLayerWeight(int layerIndex, float weight);

Parameters

layerIndex The layer's index.
weight The weight of the layer.

Description

Sets the layer's current weight.