docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DrawSubHeaderFoldout

    DrawSubHeaderFoldout(string, bool, bool, Func<bool>, Action)

    Draw a foldout header

    Declaration
    [Obsolete("'More Options' versions of DrawSubHeaderFoldout are obsolete. Please use DrawSubHeaderFoldout without 'More Options'")]
    public static bool DrawSubHeaderFoldout(string title, bool state, bool isBoxed = false, Func<bool> hasMoreOptions = null, Action toggleMoreOptions = null)
    Parameters
    Type Name Description
    string title

    The title of the header

    bool state

    The state of the header

    bool isBoxed

    [optional] is the eader contained in a box style ?

    Func<bool> hasMoreOptions

    [optional] Delegate used to draw the right state of the advanced button. If null, no button drawn.

    Action toggleMoreOptions

    [optional] Callback call when advanced button clicked. Should be used to toggle its state.

    Returns
    Type Description
    bool

    return the state of the sub foldout header

    DrawSubHeaderFoldout(GUIContent, bool, bool, Func<bool>, Action)

    Draw a foldout header

    Declaration
    [Obsolete("'More Options' versions of DrawSubHeaderFoldout are obsolete. Please use DrawSubHeaderFoldout without 'More Options'")]
    public static bool DrawSubHeaderFoldout(GUIContent title, bool state, bool isBoxed = false, Func<bool> hasMoreOptions = null, Action toggleMoreOptions = null)
    Parameters
    Type Name Description
    GUIContent title

    The title of the header

    bool state

    The state of the header

    bool isBoxed

    [optional] is the eader contained in a box style ?

    Func<bool> hasMoreOptions

    [optional] Delegate used to draw the right state of the advanced button. If null, no button drawn.

    Action toggleMoreOptions

    [optional] Callback call when advanced button clicked. Should be used to toggle its state.

    Returns
    Type Description
    bool

    return the state of the foldout header

    DrawSubHeaderFoldout(string, bool, bool)

    Draw a foldout sub header

    Declaration
    public static bool DrawSubHeaderFoldout(string title, bool state, bool isBoxed = false)
    Parameters
    Type Name Description
    string title

    The title of the header

    bool state

    The state of the header

    bool isBoxed

    [optional] is the eader contained in a box style ?

    Returns
    Type Description
    bool

    return the state of the sub foldout header

    DrawSubHeaderFoldout(GUIContent, bool, bool)

    Draw a foldout sub header

    Declaration
    public static bool DrawSubHeaderFoldout(GUIContent title, bool state, bool isBoxed = false)
    Parameters
    Type Name Description
    GUIContent title

    The title of the header

    bool state

    The state of the header

    bool isBoxed

    [optional] is the eader contained in a box style ?

    Returns
    Type Description
    bool

    return the state of the sub 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)