Version: 2017.3

ShaderUtil

class in UnityEditor

切换到手册

描述

可帮助从编辑器与着色器配合使用的 Utility 函数。

静态变量

hardwareSupportsRectRenderTexture当前硬件是否支持渲染纹理。

静态函数

GetPropertyCount获取着色器中的属性数量。
GetPropertyDescription获取着色器的 propertyIdx 索引处的着色器属性的描述。
GetPropertyName获取着色器的 propertyIdx 索引处的着色器属性的名称。
GetPropertyType获取着色器的 propertyIdx 索引处的着色器属性的 ShaderProperyType。
GetRangeLimits获取着色器的 propertyIdx 索引处的范围属性的限制。
GetTexDim获取着色器属性的纹理尺寸。
IsShaderPropertyHidden着色器的 propertyIdx 索引处的着色器属性是否隐藏?

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