docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TernaryConditional

    TernaryConditional(Enabler, IDrawer, IDrawer)

    Conditioned drawer that will draw something depending of the return of the switch

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer TernaryConditional(CoreEditorDrawer<TData>.Enabler @switch, CoreEditorDrawer<TData>.IDrawer drawIfTrue, CoreEditorDrawer<TData>.IDrawer drawIfFalse)
    Parameters
    Type Name Description
    CoreEditorDrawer<TData>.Enabler switch

    Chose witch drawing to use

    CoreEditorDrawer<TData>.IDrawer drawIfTrue

    This will be draw if the switch is true

    CoreEditorDrawer<TData>.IDrawer drawIfFalse

    This will be draw if the switch is false

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    TernaryConditional(Enabler, ActionDrawer, ActionDrawer)

    Conditioned drawer that will draw something depending of the return of the switch

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer TernaryConditional(CoreEditorDrawer<TData>.Enabler @switch, CoreEditorDrawer<TData>.ActionDrawer drawIfTrue, CoreEditorDrawer<TData>.ActionDrawer drawIfFalse)
    Parameters
    Type Name Description
    CoreEditorDrawer<TData>.Enabler switch

    Chose witch drawing to use

    CoreEditorDrawer<TData>.ActionDrawer drawIfTrue

    This will be draw if the switch is true

    CoreEditorDrawer<TData>.ActionDrawer drawIfFalse

    This will be draw if the switch is false

    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)