Shader.GetPropertyType

切换到手册

声明

public Rendering.ShaderPropertyType GetPropertyType(int propertyIndex);

参数

propertyIndex 着色器属性的索引。

描述

返回指定索引处属性的ShaderPropertyType

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


Did you find this page useful? Please give it a rating: