Class UnlitShaderGraphGUI
The UI block that represents common properties for unlit Shader Graphs.
Inherited Members
Namespace: UnityEditor.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Editor.dll
Syntax
public class UnlitShaderGraphGUI : HDShaderGUI
Properties
uiBlocks
List of UI Blocks used to render the material inspector.
Declaration
protected MaterialUIBlockList uiBlocks { get; }
Property Value
Type | Description |
---|---|
MaterialUIBlockList |
Methods
OnMaterialGUI(MaterialEditor, MaterialProperty[])
Implement your custom GUI in this function. To display a UI similar to HDRP shaders, use a MaterialUIBlockList.
Declaration
protected override void OnMaterialGUI(MaterialEditor materialEditor, MaterialProperty[] props)
Parameters
Type | Name | Description |
---|---|---|
MaterialEditor | materialEditor | The current material editor. |
MaterialProperty[] | props | The list of properties the material has. |
Overrides
ValidateMaterial(Material)
Sets up the keywords and passes for the current selected material.
Declaration
public override void ValidateMaterial(Material material)
Parameters
Type | Name | Description |
---|---|---|
Material | material | The selected material. |