docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Conditional

    Conditional(Enabler, params IDrawer[])

    Conditioned drawer that will only be drawn if its enabler function is null or return true

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer Conditional(CoreEditorDrawer<TData>.Enabler enabler, params CoreEditorDrawer<TData>.IDrawer[] contentDrawers)
    Parameters
    Type Name Description
    CoreEditorDrawer<TData>.Enabler enabler

    Enable the drawing if null or return true

    IDrawer[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Conditional(Enabler, params ActionDrawer[])

    Conditioned drawer that will only be drawn if its enabler function is null or return true

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer Conditional(CoreEditorDrawer<TData>.Enabler enabler, params CoreEditorDrawer<TData>.ActionDrawer[] contentDrawers)
    Parameters
    Type Name Description
    CoreEditorDrawer<TData>.Enabler enabler

    Enable the drawing if null or return true

    ActionDrawer[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    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)