Class MaterialUIBlock
Base implementation of a material GUI block to be disabled in the material inspector.
Inherited Members
Namespace: UnityEditor.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Editor.dll
Syntax
public abstract class MaterialUIBlock
Constructors
Name | Description |
---|---|
MaterialUIBlock() | Default Constructor, you must override the method OnGUI |
Fields
Name | Description |
---|---|
materialEditor | The current material editor. |
materials | The list of selected materials to edit. |
parent | Parent of the UI block. |
properties | The list of available properties in the selected materials. |
Properties
Name | Description |
---|---|
expandableBit | The MaterialUIBlock.ExpandableBit to store the state of the block |
header | The GUIContent used as header of the block |
isSubHeader | Property that specifies if the scope is a subheader |
showSection | If the section should be shown |
Methods
Name | Description |
---|---|
FindProperty(string, bool) | Find a material property in the list of available properties. |
FindPropertyLayered(string, int, bool) | Find a material property with layering option |
LoadMaterialProperties() | Loads the material properties for the block. |
OnGUI() | Renders the properties in the block. |
OnGUIOpen() | GUI callback when the header is open |