Class ShaderUtil
Assembly: UnityEditor.dll
Syntax
public sealed class ShaderUtil
Properties
hardwareSupportsRectRenderTexture
Declaration
public static bool hardwareSupportsRectRenderTexture { get; }
Property Value
Methods
ClearShaderErrors(Shader)
Declaration
public static void ClearShaderErrors(Shader s)
Parameters
Type |
Name |
Description |
Shader |
s |
|
CreateShaderAsset(String)
Declaration
public static Shader CreateShaderAsset(string source)
Parameters
Type |
Name |
Description |
String |
source |
|
Returns
GetAllShaderInfo()
Declaration
public static ShaderInfo[] GetAllShaderInfo()
Returns
GetPropertyCount(Shader)
Declaration
public static int GetPropertyCount(Shader s)
Parameters
Type |
Name |
Description |
Shader |
s |
|
Returns
|
Improve this Doc
View Source
GetPropertyDescription(Shader, Int32)
Declaration
public static string GetPropertyDescription(Shader s, int propertyIdx)
Parameters
Returns
|
Improve this Doc
View Source
GetPropertyName(Shader, Int32)
Declaration
public static string GetPropertyName(Shader s, int propertyIdx)
Parameters
Returns
|
Improve this Doc
View Source
GetPropertyType(Shader, Int32)
Declaration
public static ShaderUtil.ShaderPropertyType GetPropertyType(Shader s, int propertyIdx)
Parameters
Returns
|
Improve this Doc
View Source
GetRangeLimits(Shader, Int32, Int32)
Declaration
public static float GetRangeLimits(Shader s, int propertyIdx, int defminmax)
Parameters
Returns
|
Improve this Doc
View Source
GetShaderData(Shader)
Declaration
public static ShaderData GetShaderData(Shader shader)
Parameters
Type |
Name |
Description |
Shader |
shader |
|
Returns
|
Improve this Doc
View Source
GetTexDim(Shader, Int32)
Declaration
public static TextureDimension GetTexDim(Shader s, int propertyIdx)
Parameters
Returns
|
Improve this Doc
View Source
IsShaderPropertyHidden(Shader, Int32)
Declaration
public static bool IsShaderPropertyHidden(Shader s, int propertyIdx)
Parameters
Returns
|
Improve this Doc
View Source
IsShaderPropertyNonModifiableTexureProperty(Shader, Int32)
Declaration
public static bool IsShaderPropertyNonModifiableTexureProperty(Shader s, int propertyIdx)
Parameters
Returns
RegisterShader(Shader)
Declaration
public static void RegisterShader(Shader shader)
Parameters
Type |
Name |
Description |
Shader |
shader |
|
UpdateShaderAsset(Shader, String)
Declaration
public static void UpdateShaderAsset(Shader shader, string source)
Parameters
Extension Methods