Class ShaderGraphUIBlock
The UI block that represents Shader Graph material properties. This UI block displays every non-hidden property inside a shader. You can also use this with non-shadergraph shaders.
Inherited Members
Namespace: UnityEditor.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Editor.dll
Syntax
public class ShaderGraphUIBlock : MaterialUIBlock
Constructors
Name | Description |
---|---|
ShaderGraphUIBlock(ExpandableBit, Features) | Constructs a ShaderGraphUIBlock based on the parameters. |
Methods
Name | Description |
---|---|
DrawDiffusionProfileUI() | Draw the built-in exposed Diffusion Profile when a material uses sub-surface scattering or transmission. |
DrawShadowMatteToggle() | Draws the Shadow Matte settings. This is only available for Unlit materials. |
LoadMaterialProperties() | Loads the material properties for the block. |
OnGUIOpen() | Renders the properties in the block. |
PropertiesDefaultGUI(MaterialProperty[]) | Draws the material properties. |