GetLayerIndex(string)
Returns the index of the layer with the given name.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AnimationModule
public int GetLayerIndex(string layerName)
Parameters
The layer name.
Returns
Type | Description |
|---|---|
| int | The layer index. |