Class LayeringOptionsUIBlock
The UI block that represents layering options for materials.
Inherited Members
Namespace: UnityEditor.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Editor.dll
Syntax
public class LayeringOptionsUIBlock : MaterialUIBlock
Constructors
LayeringOptionsUIBlock(ExpandableBit, int)
Constructs a LayeringOptionsUIBlock based on the parameters.
Declaration
public LayeringOptionsUIBlock(MaterialUIBlock.ExpandableBit expandableBit, int layerIndex)
Parameters
Type | Name | Description |
---|---|---|
MaterialUIBlock.ExpandableBit | expandableBit | Bit index used to store the foldout state. |
int | layerIndex | Current layer index. For non-layered shader, indicate 0. |
Properties
isSubHeader
Property that specifies if the scope is a subheader
Declaration
protected override bool isSubHeader { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
LoadMaterialProperties()
Loads the material properties for the block.
Declaration
public override void LoadMaterialProperties()
Overrides
OnGUIOpen()
Renders the properties in the block.
Declaration
protected override void OnGUIOpen()