Version: 2017.3 (switch to 2017.4)
LanguageEnglish
  • C#
  • JS

Script language

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

Animator.SetLayerWeight

Switch to Manual
public void SetLayerWeight(int layerIndex, float weight);

Parameters

layerIndex The layer index.
weight The new layer weight.

Description

Sets the weight of the layer at the given index.

Did you find this page useful? Please give it a rating: