docs.unity3d.com
    Show / Hide Table of Contents

    Class DetailInputsUIBlock

    The UI block that represents detail inputs for materials.

    Inheritance
    Object
    MaterialUIBlock
    DetailInputsUIBlock
    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 DetailInputsUIBlock : MaterialUIBlock

    Constructors

    DetailInputsUIBlock(MaterialUIBlock.ExpandableBit, Int32, Int32, DetailInputsUIBlock.Features, Color)

    Constructs a DetailInputsUIBlock base on the parameters.

    Declaration
    public DetailInputsUIBlock(MaterialUIBlock.ExpandableBit expandableBit, int layerCount = 1, int layerIndex = 0, DetailInputsUIBlock.Features features = DetailInputsUIBlock.Features.All, Color dotColor = default(Color))
    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

    DetailInputsUIBlock.Features features

    Features of the block.

    Color dotColor

    Subheader dot color. See Layered Lit UI subheader for more info.

    Methods

    DrawDetailsGUI()

    Draw the Details GUI.

    Declaration
    protected void DrawDetailsGUI()

    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