docs.unity3d.com
    目次を表示する/隠す

    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.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)