Class EmissionUIBlock
The UI block that displays emission properties for materials.
Inherited Members
Namespace: UnityEditor.Rendering.HighDefinition
Syntax
public class EmissionUIBlock : MaterialUIBlock
Constructors
EmissionUIBlock(MaterialUIBlock.ExpandableBit, EmissionUIBlock.Features)
Constructs an EmissionUIBlock based on the parameters.
Declaration
public EmissionUIBlock(MaterialUIBlock.ExpandableBit expandableBit, EmissionUIBlock.Features features = EmissionUIBlock.Features.EnableEmissionForGI | EmissionUIBlock.Features.MultiplyWithBase | EmissionUIBlock.Features.All)
Parameters
| Type | Name | Description |
|---|---|---|
| MaterialUIBlock.ExpandableBit | expandableBit | Bit index used to store the foldout state. |
| EmissionUIBlock.Features | features | Features of the block. |
Methods
BakedEmissionEnabledProperty(MaterialEditor)
Draw the Baked Emission Enabled field
Declaration
public static bool BakedEmissionEnabledProperty(MaterialEditor materialEditor)
Parameters
| Type | Name | Description |
|---|---|---|
| MaterialEditor | materialEditor | The current material editor in use. |
Returns
| Type | Description |
|---|---|
| Boolean | True if the property is enabled on all selected materials. |
LoadMaterialProperties()
Loads the material properties for the block.
Declaration
public override void LoadMaterialProperties()
Overrides
OnGUI()
Renders the properties in the block.
Declaration
public override void OnGUI()