docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Foldout

    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.

    In This Article
    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