Version: 2020.2

Animator.GetLayerIndex

切换到手册
public int GetLayerIndex (string layerName);

参数

layerName 层名称。

返回

int 层索引。

描述

返回具有给定名称的层的索引。