docs.unity3d.com
    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.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.Purchasing
    Syntax
    protected static class CompatibleGUI

    Fields

    parsedVersion

    Whether or not the GUI item has been folded out.

    Declaration
    public static bool parsedVersion
    Field Value
    Type Description
    Boolean

    Methods

    Foldout(Boolean, String, Boolean, GUIStyle)

    Folds out the GUI item.

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

    The shown foldout state.

    String text

    The label to show.

    Boolean 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
    Boolean

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

    FoldoutHelper(Boolean, String, Boolean, 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
    Boolean foldout

    The shown foldout state.

    String text

    The label to show.

    Boolean 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
    Boolean

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

    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