docs.unity3d.com
    Show / Hide Table of Contents

    Class TMP_BaseShaderGUI.MaterialPanel

    Material panel that keeps track of whether the user opened or closed it.

    Inheritance
    System.Object
    TMP_BaseShaderGUI.MaterialPanel
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: TMPro.EditorUtilities
    Syntax
    protected class MaterialPanel

    Constructors

    MaterialPanel(String, Boolean)

    Declaration
    public MaterialPanel(string name, bool expandedByDefault)
    Parameters
    Type Name Description
    System.String name
    System.Boolean expandedByDefault

    Properties

    Expanded

    Declaration
    public bool Expanded { get; }
    Property Value
    Type Description
    System.Boolean

    Label

    Declaration
    public string Label { get; }
    Property Value
    Type Description
    System.String

    Methods

    ToggleExpanded()

    Declaration
    public void ToggleExpanded()
    Back to top
    Copyright © 2025 Unity Technologies
    • 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 02 April 2025