文档

Unity Engine

Unity Engine

SetLayerWeight(int, float)

Sets the weight of the layer at the given index.
阅读时间1 分钟最后更新于 1 个月前

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.