Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetLayerWeight(int, float)

Sets the weight of the layer at the given index.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
public void SetLayerWeight(int layerIndex, float weight)

Parameters

layerIndex

The layer index.

weight

The new layer weight.