Class LitSurfaceInputsUIBlock
The UI block that represents lit surface input properties. This block is shared for Lit and Layered surface inputs + tesselation variants.
Inherited Members
Namespace: UnityEditor.Rendering.HighDefinition
Syntax
public class LitSurfaceInputsUIBlock : MaterialUIBlock
Constructors
LitSurfaceInputsUIBlock(MaterialUIBlock.ExpandableBit, Int32, Int32, LitSurfaceInputsUIBlock.Features)
Constructs a LitSurfaceInputsUIBlock based on the parameters.
Declaration
public LitSurfaceInputsUIBlock(MaterialUIBlock.ExpandableBit expandableBit, int layerCount = 1, int layerIndex = 0, LitSurfaceInputsUIBlock.Features features = LitSurfaceInputsUIBlock.Features.All)
Parameters
Type | Name | Description |
---|---|---|
MaterialUIBlock.ExpandableBit | expandableBit | Bit index to store the foldout state. |
Int32 | layerCount | Number of layers in the shader. |
Int32 | layerIndex | Current layer index to display. 0 if it's not a layered shader |
LitSurfaceInputsUIBlock.Features | features | Features of the block. |
Properties
isSubHeader
Property that specifies if the scope is a subheader
Declaration
protected override bool isSubHeader { get; }
Property Value
Type | Description |
---|---|
Boolean |
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()