Version: 5.3 (switch to 5.4b)
ЯзыкEnglish
  • C#
  • JS

Язык программирования

Выберите подходящий для вас язык программирования. Все примеры кода будут представлены на выбранном языке.

ShaderUtil

class in UnityEditor

Руководство

Описание

Utility functions to assist with working with shaders from the editor.

Статические переменные

hardwareSupportsRectRenderTextureDoes the current hardware support render textues.

Статические функции

GetPropertyCountGet the number of properties in Shader s.
GetPropertyDescriptionGet the description of the shader propery at index propertyIdx of Shader s.
GetPropertyNameGet the name of the shader propery at index propertyIdx of Shader s.
GetPropertyTypeGet the ShaderProperyType of the shader propery at index propertyIdx of Shader s.
GetRangeLimitsGet Limits for a range property at index propertyIdx of Shader s.
GetTexDimGets the ShaderPropertyTexDim of the texture at property index propertyIdx of Shader s.
IsShaderPropertyHiddenIs the shader propery at index propertyIdx of Shader s hidden?