Version: 2020.2

Shader.GetPropertyNameId

切换到手册
public int GetPropertyNameId (int propertyIndex);

参数

propertyIndex 着色器属性的索引。

描述

返回指定索引处的着色器属性的 nameId。

如果 Unity 在指定索引处找不到属性,函数将抛出 /ArgumentOutOfRangeException/。