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 5 days ago

Definition

public void SetLayerWeight(int layerIndex, float weight)

Parameters

layerIndex

The layer index.

weight

The new layer weight.