Class StandardUpgrader
Upgrader for the standard and standard (specular setup) shaders.
Inherited Members
MaterialUpgrader.NewShaderPath
MaterialUpgrader.GetPropertyRenameMap(MaterialUpgrader.MaterialPropertyType)
Namespace: UnityEditor.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Editor.dll
Syntax
public class StandardUpgrader : MaterialUpgrader
Constructors
StandardUpgrader(string)
Constructor for the StandardUpgrader class.
Declaration
public StandardUpgrader(string oldShaderName)
Parameters
Type | Name | Description |
---|---|---|
string | oldShaderName | The name of the old shader. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
Methods
UpdateStandardMaterialKeywords(Material)
Updates keywords for the standard shader.
Declaration
public static void UpdateStandardMaterialKeywords(Material material)
Parameters
Type | Name | Description |
---|---|---|
Material | material | The material to update. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
UpdateStandardSpecularMaterialKeywords(Material)
Updates keywords for the standard specular shader.
Declaration
public static void UpdateStandardSpecularMaterialKeywords(Material material)
Parameters
Type | Name | Description |
---|---|---|
Material | material | The material to update. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |