docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DrawHeaderToggleFoldout

    DrawHeaderToggleFoldout(GUIContent, bool, SerializedProperty, Action<Vector2>, Func<bool>, Action, string)

    Draw a header toggle like in Volumes

    Declaration
    public static bool DrawHeaderToggleFoldout(GUIContent title, bool foldoutExpanded, SerializedProperty toogleProperty, Action<Vector2> contextAction, Func<bool> hasMoreOptions, Action toggleMoreOptions, string documentationURL)
    Parameters
    Type Name Description
    GUIContent title

    The title of the header

    bool foldoutExpanded

    If the foldout is expanded

    SerializedProperty toogleProperty

    The property to bind the toggle

    Action<Vector2> contextAction

    The context action

    Func<bool> hasMoreOptions

    Delegate saying if we have MoreOptions

    Action toggleMoreOptions

    Callback called when the MoreOptions is toggled

    string documentationURL

    Documentation URL

    Returns
    Type Description
    bool

    return the state of the foldout header

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