docs.unity3d.com
    Show / Hide Table of Contents

    Class EmissionUIBlock

    The UI block that displays emission properties for materials.

    Inheritance
    Object
    MaterialUIBlock
    EmissionUIBlock
    Inherited Members
    MaterialUIBlock.materialEditor
    MaterialUIBlock.materials
    MaterialUIBlock.properties
    MaterialUIBlock.parent
    MaterialUIBlock.FindProperty(String, Boolean)
    MaterialUIBlock.FindPropertyLayered(String, Int32, Boolean)
    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
    MaterialUIBlock.LoadMaterialProperties()

    OnGUI()

    Renders the properties in the block.

    Declaration
    public override void OnGUI()
    Overrides
    MaterialUIBlock.OnGUI()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023