docs.unity.cn
    Show / Hide Table of Contents

    Class SurfaceOptionUIBlock

    The UI block that represents surface option properties for materials.

    Inheritance
    Object
    MaterialUIBlock
    SurfaceOptionUIBlock
    Inherited Members
    MaterialUIBlock.expandableBit
    MaterialUIBlock.header
    MaterialUIBlock.materialEditor
    MaterialUIBlock.materials
    MaterialUIBlock.properties
    MaterialUIBlock.parent
    MaterialUIBlock.FindProperty(String, Boolean)
    MaterialUIBlock.FindPropertyLayered(String, Int32, Boolean)
    MaterialUIBlock.OnGUI()
    MaterialUIBlock.isSubHeader
    MaterialUIBlock.showSection
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.Rendering.HighDefinition
    Syntax
    public class SurfaceOptionUIBlock : MaterialUIBlock

    Constructors

    SurfaceOptionUIBlock(MaterialUIBlock.ExpandableBit, Int32, SurfaceOptionUIBlock.Features)

    Constructs a SurfaceOptionUIBlock based on the parameters.

    Declaration
    public SurfaceOptionUIBlock(MaterialUIBlock.ExpandableBit expandableBit, int layerCount = 1, SurfaceOptionUIBlock.Features features = SurfaceOptionUIBlock.Features.All)
    Parameters
    Type Name Description
    MaterialUIBlock.ExpandableBit expandableBit

    Bit used for the foldout state.

    Int32 layerCount

    Number of layers available in the shader.

    SurfaceOptionUIBlock.Features features

    Features of the block.

    Methods

    DrawAlphaCutoffGUI()

    Draws the Alpha Cutoff GUI.

    Declaration
    protected void DrawAlphaCutoffGUI()

    DrawDoubleSidedGUI()

    Draws the Double Sided GUI.

    Declaration
    protected void DrawDoubleSidedGUI()

    DrawLitSurfaceOptions()

    Draws the Lit Surface Options GUI.

    Declaration
    protected void DrawLitSurfaceOptions()

    DrawSurfaceGUI()

    Draws the Surface GUI.

    Declaration
    protected void DrawSurfaceGUI()

    LoadMaterialProperties()

    Loads the material properties for the block.

    Declaration
    public override void LoadMaterialProperties()
    Overrides
    MaterialUIBlock.LoadMaterialProperties()

    OnGUIOpen()

    Renders the properties in the block.

    Declaration
    protected override void OnGUIOpen()
    Overrides
    MaterialUIBlock.OnGUIOpen()
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 26 September 2023