Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetLayerWeight(int)

Returns the weight of the layer at the specified index.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
public float GetLayerWeight(int layerIndex)

Parameters

layerIndex

The layer index.

Returns

Type

Description

floatThe layer weight.