docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MaterialUIBlock

    Base implementation of a material GUI block to be disabled in the material inspector.

    Inheritance
    object
    MaterialUIBlock
    AdvancedOptionsUIBlock
    DecalSortingInputsUIBlock
    DecalSurfaceInputsUIBlock
    DecalSurfaceOptionsUIBlock
    DetailInputsUIBlock
    DistortionUIBlock
    EmissionUIBlock
    FogVolumeUIBlock
    LayerListUIBlock
    LayeringOptionsUIBlock
    LayersUIBlock
    LitSurfaceInputsUIBlock
    RefractionUIBlock
    ShaderGraphUIBlock
    SurfaceOptionUIBlock
    TessellationOptionsUIBlock
    TransparencyUIBlock
    UnlitSurfaceInputsUIBlock
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)