docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ProductCatalogEditor.CompatibleGUI

    Workaround toggleOnLabelClick not being supported correctly until Unity 5.5 See https://ono.unity3d.com/unity/unity/changeset/9f5bb2308eb90fb8276f49033a5b31f66cd4faa3 (5.5.0b2)

    Inheritance
    object
    ProductCatalogEditor.CompatibleGUI
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Purchasing
    Assembly: UnityEditor.Purchasing.dll
    Syntax
    protected static class ProductCatalogEditor.CompatibleGUI

    Fields

    parsedVersion

    Whether or not the GUI item has been folded out.

    Declaration
    public static bool parsedVersion
    Field Value
    Type Description
    bool

    Methods

    Foldout(bool, string, bool, GUIStyle)

    Folds out the GUI item.

    Declaration
    public static bool Foldout(bool foldout, string text, bool toggleOnLabelClick, GUIStyle style)
    Parameters
    Type Name Description
    bool foldout

    The shown foldout state.

    string text

    The label to show.

    bool toggleOnLabelClick

    Optional GUIStyle.

    GUIStyle style

    Specifies whether clicking the label toggles the foldout state. The default value is false. Set to true to include the label in the clickable area.

    Returns
    Type Description
    bool

    The foldout state selected by the user. If true, you should render sub-objects.

    FoldoutHelper(bool, string, bool, GUIStyle)

    Helper that folds out the GUI item. Exists to fix a linker binding error with Foldout.

    Declaration
    public static bool FoldoutHelper(bool foldout, string text, bool toggleOnLabelClick, GUIStyle style)
    Parameters
    Type Name Description
    bool foldout

    The shown foldout state.

    string text

    The label to show.

    bool toggleOnLabelClick

    Optional GUIStyle.

    GUIStyle style

    Specifies whether clicking the label toggles the foldout state. The default value is false. Set to true to include the label in the clickable area.

    Returns
    Type Description
    bool

    The foldout state selected by the user. If true, you should render sub-objects.

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