docs.unity3d.com
    Show / Hide Table of Contents

    Class CoreEditorDrawer<TData>

    Utility class to draw inspectors

    Inheritance
    Object
    CoreEditorDrawer<TData>
    Namespace: UnityEditor.Rendering
    Syntax
    public static class CoreEditorDrawer<TData>
    Type Parameters
    Name Description
    TData

    Type of class containing data needed to draw inspector

    Fields

    noop

    Use it when IDrawer required but no operation should be done

    Declaration
    public static readonly CoreEditorDrawer<TData>.IDrawer noop
    Field Value
    Type Description
    CoreEditorDrawer.IDrawer<>

    space

    Equivalent to EditorGUILayout.Space that can be put in a drawer group

    Declaration
    public static readonly CoreEditorDrawer<TData>.IDrawer space
    Field Value
    Type Description
    CoreEditorDrawer.IDrawer<>

    Methods

    AdditionalPropertiesFoldoutGroup<TEnum, TState, TAPEnum, TAPState>(GUIContent, TEnum, ExpandedState<TEnum, TState>, TAPEnum, AdditionalPropertiesState<TAPEnum, TAPState>, CoreEditorDrawer<TData>.ActionDrawer, CoreEditorDrawer<TData>.ActionDrawer, FoldoutOption)

    Helper to draw a foldout with additional properties.

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer AdditionalPropertiesFoldoutGroup<TEnum, TState, TAPEnum, TAPState>(GUIContent foldoutTitle, TEnum foldoutMask, ExpandedState<TEnum, TState> foldoutState, TAPEnum additionalPropertiesMask, AdditionalPropertiesState<TAPEnum, TAPState> additionalPropertiesState, CoreEditorDrawer<TData>.ActionDrawer normalContent, CoreEditorDrawer<TData>.ActionDrawer additionalContent, FoldoutOption options = FoldoutOption.Indent)
        where TEnum : struct, IConvertible where TAPEnum : struct, IConvertible
    Parameters
    Type Name Description
    GUIContent foldoutTitle

    Title wanted for this foldout header

    TEnum foldoutMask

    Bit mask (enum) used to define the boolean saving the state in ExpandedState

    ExpandedState<TEnum, TState> foldoutState

    The ExpandedState describing the component

    TAPEnum additionalPropertiesMask

    Bit mask (enum) used to define the boolean saving the state in AdditionalPropertiesState

    AdditionalPropertiesState<TAPEnum, TAPState> additionalPropertiesState

    The AdditionalPropertiesState describing the component

    CoreEditorDrawer.ActionDrawer<> normalContent

    The content of the foldout header always visible if expended.

    CoreEditorDrawer.ActionDrawer<> additionalContent

    The content of the foldout header only visible if additional properties are shown and if foldout is expanded.

    FoldoutOption options

    Drawing options

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the foldout mask used.

    TState

    Type of the persistent foldout state.

    TAPEnum

    Type of the additional properties mask used.

    TAPState

    Type of the persistent additional properties state.

    AdditionalPropertiesFoldoutGroup<TEnum, TState, TAPEnum, TAPState>(GUIContent, TEnum, ExpandedState<TEnum, TState>, TAPEnum, AdditionalPropertiesState<TAPEnum, TAPState>, CoreEditorDrawer<TData>.ActionDrawer, CoreEditorDrawer<TData>.IDrawer, FoldoutOption)

    Helper to draw a foldout with additional properties.

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer AdditionalPropertiesFoldoutGroup<TEnum, TState, TAPEnum, TAPState>(GUIContent foldoutTitle, TEnum foldoutMask, ExpandedState<TEnum, TState> foldoutState, TAPEnum additionalPropertiesMask, AdditionalPropertiesState<TAPEnum, TAPState> additionalPropertiesState, CoreEditorDrawer<TData>.ActionDrawer normalContent, CoreEditorDrawer<TData>.IDrawer additionalContent, FoldoutOption options = FoldoutOption.Indent)
        where TEnum : struct, IConvertible where TAPEnum : struct, IConvertible
    Parameters
    Type Name Description
    GUIContent foldoutTitle

    Title wanted for this foldout header

    TEnum foldoutMask

    Bit mask (enum) used to define the boolean saving the state in ExpandedState

    ExpandedState<TEnum, TState> foldoutState

    The ExpandedState describing the component

    TAPEnum additionalPropertiesMask

    Bit mask (enum) used to define the boolean saving the state in AdditionalPropertiesState

    AdditionalPropertiesState<TAPEnum, TAPState> additionalPropertiesState

    The AdditionalPropertiesState describing the component

    CoreEditorDrawer.ActionDrawer<> normalContent

    The content of the foldout header always visible if expended.

    CoreEditorDrawer.IDrawer<> additionalContent

    The content of the foldout header only visible if additional properties are shown and if foldout is expanded.

    FoldoutOption options

    Drawing options

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the foldout mask used.

    TState

    Type of the persistent foldout state.

    TAPEnum

    Type of the additional properties mask used.

    TAPState

    Type of the persistent additional properties state.

    AdditionalPropertiesFoldoutGroup<TEnum, TState, TAPEnum, TAPState>(GUIContent, TEnum, ExpandedState<TEnum, TState>, TAPEnum, AdditionalPropertiesState<TAPEnum, TAPState>, CoreEditorDrawer<TData>.IDrawer, CoreEditorDrawer<TData>.ActionDrawer, FoldoutOption)

    Helper to draw a foldout with additional properties.

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer AdditionalPropertiesFoldoutGroup<TEnum, TState, TAPEnum, TAPState>(GUIContent foldoutTitle, TEnum foldoutMask, ExpandedState<TEnum, TState> foldoutState, TAPEnum additionalPropertiesMask, AdditionalPropertiesState<TAPEnum, TAPState> additionalPropertiesState, CoreEditorDrawer<TData>.IDrawer normalContent, CoreEditorDrawer<TData>.ActionDrawer additionalContent, FoldoutOption options = FoldoutOption.Indent)
        where TEnum : struct, IConvertible where TAPEnum : struct, IConvertible
    Parameters
    Type Name Description
    GUIContent foldoutTitle

    Title wanted for this foldout header

    TEnum foldoutMask

    Bit mask (enum) used to define the boolean saving the state in ExpandedState

    ExpandedState<TEnum, TState> foldoutState

    The ExpandedState describing the component

    TAPEnum additionalPropertiesMask

    Bit mask (enum) used to define the boolean saving the state in AdditionalPropertiesState

    AdditionalPropertiesState<TAPEnum, TAPState> additionalPropertiesState

    The AdditionalPropertiesState describing the component

    CoreEditorDrawer.IDrawer<> normalContent

    The content of the foldout header always visible if expended.

    CoreEditorDrawer.ActionDrawer<> additionalContent

    The content of the foldout header only visible if additional properties are shown and if foldout is expanded.

    FoldoutOption options

    Drawing options

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the foldout mask used.

    TState

    Type of the persistent foldout state.

    TAPEnum

    Type of the additional properties mask used.

    TAPState

    Type of the persistent additional properties state.

    AdditionalPropertiesFoldoutGroup<TEnum, TState, TAPEnum, TAPState>(GUIContent, TEnum, ExpandedState<TEnum, TState>, TAPEnum, AdditionalPropertiesState<TAPEnum, TAPState>, CoreEditorDrawer<TData>.IDrawer, CoreEditorDrawer<TData>.IDrawer, FoldoutOption)

    Helper to draw a foldout with additional properties.

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer AdditionalPropertiesFoldoutGroup<TEnum, TState, TAPEnum, TAPState>(GUIContent foldoutTitle, TEnum foldoutMask, ExpandedState<TEnum, TState> foldoutState, TAPEnum additionalPropertiesMask, AdditionalPropertiesState<TAPEnum, TAPState> additionalPropertiesState, CoreEditorDrawer<TData>.IDrawer normalContent, CoreEditorDrawer<TData>.IDrawer additionalContent, FoldoutOption options = FoldoutOption.Indent)
        where TEnum : struct, IConvertible where TAPEnum : struct, IConvertible
    Parameters
    Type Name Description
    GUIContent foldoutTitle

    Title wanted for this foldout header

    TEnum foldoutMask

    Bit mask (enum) used to define the boolean saving the state in ExpandedState

    ExpandedState<TEnum, TState> foldoutState

    The ExpandedState describing the component

    TAPEnum additionalPropertiesMask

    Bit mask (enum) used to define the boolean saving the state in AdditionalPropertiesState

    AdditionalPropertiesState<TAPEnum, TAPState> additionalPropertiesState

    The AdditionalPropertiesState describing the component

    CoreEditorDrawer.IDrawer<> normalContent

    The content of the foldout header always visible if expended.

    CoreEditorDrawer.IDrawer<> additionalContent

    The content of the foldout header only visible if additional properties are shown and if foldout is expanded.

    FoldoutOption options

    Drawing options

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the foldout mask used.

    TState

    Type of the persistent foldout state.

    TAPEnum

    Type of the additional properties mask used.

    TAPState

    Type of the persistent additional properties state.

    AdvancedFoldoutGroup<TEnum, TState>(GUIContent, TEnum, ExpandedState<TEnum, TState>, CoreEditorDrawer<TData>.Enabler, CoreEditorDrawer<TData>.SwitchEnabler, CoreEditorDrawer<TData>.ActionDrawer, CoreEditorDrawer<TData>.ActionDrawer, FoldoutOption)

    Helper to draw a foldout with an advanced switch on it.

    Declaration
    [Obsolete("Use AdditionalPropertiesFoldoutGroup instead.")]
    public static CoreEditorDrawer<TData>.IDrawer AdvancedFoldoutGroup<TEnum, TState>(GUIContent foldoutTitle, TEnum foldoutMask, ExpandedState<TEnum, TState> foldoutState, CoreEditorDrawer<TData>.Enabler isAdvanced, CoreEditorDrawer<TData>.SwitchEnabler switchAdvanced, CoreEditorDrawer<TData>.ActionDrawer normalContent, CoreEditorDrawer<TData>.ActionDrawer advancedContent, FoldoutOption options = FoldoutOption.Indent)
        where TEnum : struct, IConvertible
    Parameters
    Type Name Description
    GUIContent foldoutTitle

    Title wanted for this foldout header

    TEnum foldoutMask

    Bit mask (enum) used to define the boolean saving the state in ExpandedState

    ExpandedState<TEnum, TState> foldoutState

    The ExpandedState describing the component

    CoreEditorDrawer.Enabler<> isAdvanced

    Delegate allowing to check if advanced mode is active.

    CoreEditorDrawer.SwitchEnabler<> switchAdvanced

    Delegate to know what to do when advance is switched.

    CoreEditorDrawer.ActionDrawer<> normalContent

    The content of the foldout header always visible if expended.

    CoreEditorDrawer.ActionDrawer<> advancedContent

    The content of the foldout header only visible if advanced mode is active and if foldout is expended.

    FoldoutOption options

    Drawing options

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    TState

    Type of the persistent state

    AdvancedFoldoutGroup<TEnum, TState>(GUIContent, TEnum, ExpandedState<TEnum, TState>, CoreEditorDrawer<TData>.Enabler, CoreEditorDrawer<TData>.SwitchEnabler, CoreEditorDrawer<TData>.ActionDrawer, CoreEditorDrawer<TData>.IDrawer, FoldoutOption)

    Helper to draw a foldout with an advanced switch on it.

    Declaration
    [Obsolete("Use AdditionalPropertiesFoldoutGroup instead.")]
    public static CoreEditorDrawer<TData>.IDrawer AdvancedFoldoutGroup<TEnum, TState>(GUIContent foldoutTitle, TEnum foldoutMask, ExpandedState<TEnum, TState> foldoutState, CoreEditorDrawer<TData>.Enabler isAdvanced, CoreEditorDrawer<TData>.SwitchEnabler switchAdvanced, CoreEditorDrawer<TData>.ActionDrawer normalContent, CoreEditorDrawer<TData>.IDrawer advancedContent, FoldoutOption options = FoldoutOption.Indent)
        where TEnum : struct, IConvertible
    Parameters
    Type Name Description
    GUIContent foldoutTitle

    Title wanted for this foldout header

    TEnum foldoutMask

    Bit mask (enum) used to define the boolean saving the state in ExpandedState

    ExpandedState<TEnum, TState> foldoutState

    The ExpandedState describing the component

    CoreEditorDrawer.Enabler<> isAdvanced

    Delegate allowing to check if advanced mode is active.

    CoreEditorDrawer.SwitchEnabler<> switchAdvanced

    Delegate to know what to do when advance is switched.

    CoreEditorDrawer.ActionDrawer<> normalContent

    The content of the foldout header always visible if expended.

    CoreEditorDrawer.IDrawer<> advancedContent

    The content of the foldout header only visible if advanced mode is active and if foldout is expended.

    FoldoutOption options

    Drawing options

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    TState

    Type of the persistent state

    AdvancedFoldoutGroup<TEnum, TState>(GUIContent, TEnum, ExpandedState<TEnum, TState>, CoreEditorDrawer<TData>.Enabler, CoreEditorDrawer<TData>.SwitchEnabler, CoreEditorDrawer<TData>.IDrawer, CoreEditorDrawer<TData>.ActionDrawer, FoldoutOption)

    Helper to draw a foldout with an advanced switch on it.

    Declaration
    [Obsolete("Use AdditionalPropertiesFoldoutGroup instead.")]
    public static CoreEditorDrawer<TData>.IDrawer AdvancedFoldoutGroup<TEnum, TState>(GUIContent foldoutTitle, TEnum foldoutMask, ExpandedState<TEnum, TState> foldoutState, CoreEditorDrawer<TData>.Enabler isAdvanced, CoreEditorDrawer<TData>.SwitchEnabler switchAdvanced, CoreEditorDrawer<TData>.IDrawer normalContent, CoreEditorDrawer<TData>.ActionDrawer advancedContent, FoldoutOption options = FoldoutOption.Indent)
        where TEnum : struct, IConvertible
    Parameters
    Type Name Description
    GUIContent foldoutTitle

    Title wanted for this foldout header

    TEnum foldoutMask

    Bit mask (enum) used to define the boolean saving the state in ExpandedState

    ExpandedState<TEnum, TState> foldoutState

    The ExpandedState describing the component

    CoreEditorDrawer.Enabler<> isAdvanced

    Delegate allowing to check if advanced mode is active.

    CoreEditorDrawer.SwitchEnabler<> switchAdvanced

    Delegate to know what to do when advance is switched.

    CoreEditorDrawer.IDrawer<> normalContent

    The content of the foldout header always visible if expended.

    CoreEditorDrawer.ActionDrawer<> advancedContent

    The content of the foldout header only visible if advanced mode is active and if foldout is expended.

    FoldoutOption options

    Drawing options

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    TState

    Type of the persistent state

    AdvancedFoldoutGroup<TEnum, TState>(GUIContent, TEnum, ExpandedState<TEnum, TState>, CoreEditorDrawer<TData>.Enabler, CoreEditorDrawer<TData>.SwitchEnabler, CoreEditorDrawer<TData>.IDrawer, CoreEditorDrawer<TData>.IDrawer, FoldoutOption)

    Helper to draw a foldout with an advanced switch on it.

    Declaration
    [Obsolete("Use AdditionalPropertiesFoldoutGroup instead.")]
    public static CoreEditorDrawer<TData>.IDrawer AdvancedFoldoutGroup<TEnum, TState>(GUIContent foldoutTitle, TEnum foldoutMask, ExpandedState<TEnum, TState> foldoutState, CoreEditorDrawer<TData>.Enabler isAdvanced, CoreEditorDrawer<TData>.SwitchEnabler switchAdvanced, CoreEditorDrawer<TData>.IDrawer normalContent, CoreEditorDrawer<TData>.IDrawer advancedContent, FoldoutOption options = FoldoutOption.Indent)
        where TEnum : struct, IConvertible
    Parameters
    Type Name Description
    GUIContent foldoutTitle

    Title wanted for this foldout header

    TEnum foldoutMask

    Bit mask (enum) used to define the boolean saving the state in ExpandedState

    ExpandedState<TEnum, TState> foldoutState

    The ExpandedState describing the component

    CoreEditorDrawer.Enabler<> isAdvanced

    Delegate allowing to check if advanced mode is active.

    CoreEditorDrawer.SwitchEnabler<> switchAdvanced

    Delegate to know what to do when advance is switched.

    CoreEditorDrawer.IDrawer<> normalContent

    The content of the foldout header always visible if expended.

    CoreEditorDrawer.IDrawer<> advancedContent

    The content of the foldout header only visible if advanced mode is active and if foldout is expended.

    FoldoutOption options

    Drawing options

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    TState

    Type of the persistent state

    Conditional(CoreEditorDrawer<TData>.Enabler, CoreEditorDrawer<TData>.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.Enabler<> enabler

    Enable the drawing if null or return true

    CoreEditorDrawer.ActionDrawer<>[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Conditional(CoreEditorDrawer<TData>.Enabler, CoreEditorDrawer<TData>.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.Enabler<> enabler

    Enable the drawing if null or return true

    CoreEditorDrawer.IDrawer<>[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    FoldoutGroup<TEnum, TState>(String, TEnum, ExpandedState<TEnum, TState>, CoreEditorDrawer<TData>.ActionDrawer[])

    Create an IDrawer foldout header using an ExpandedState. The default option is Indent in this version.

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum, TState>(string title, TEnum mask, ExpandedState<TEnum, TState> state, params CoreEditorDrawer<TData>.ActionDrawer[] contentDrawers)
        where TEnum : struct, IConvertible
    Parameters
    Type Name Description
    String title

    Title wanted for this foldout header

    TEnum mask

    Bit mask (enum) used to define the boolean saving the state in ExpandedState

    ExpandedState<TEnum, TState> state

    The ExpandedState describing the component

    CoreEditorDrawer.ActionDrawer<>[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    TState

    Type of the persistent state

    FoldoutGroup<TEnum, TState>(String, TEnum, ExpandedState<TEnum, TState>, CoreEditorDrawer<TData>.IDrawer[])

    Create an IDrawer foldout header using an ExpandedState. The default option is Indent in this version.

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum, TState>(string title, TEnum mask, ExpandedState<TEnum, TState> state, params CoreEditorDrawer<TData>.IDrawer[] contentDrawers)
        where TEnum : struct, IConvertible
    Parameters
    Type Name Description
    String title

    Title wanted for this foldout header

    TEnum mask

    Bit mask (enum) used to define the boolean saving the state in ExpandedState

    ExpandedState<TEnum, TState> state

    The ExpandedState describing the component

    CoreEditorDrawer.IDrawer<>[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    TState

    Type of the persistent state

    FoldoutGroup<TEnum, TState>(String, TEnum, ExpandedState<TEnum, TState>, FoldoutOption, CoreEditorDrawer<TData>.ActionDrawer[])

    Create an IDrawer foldout header using an ExpandedState

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum, TState>(string title, TEnum mask, ExpandedState<TEnum, TState> state, FoldoutOption options, params CoreEditorDrawer<TData>.ActionDrawer[] contentDrawers)
        where TEnum : struct, IConvertible
    Parameters
    Type Name Description
    String title

    Title wanted for this foldout header

    TEnum mask

    Bit mask (enum) used to define the boolean saving the state in ExpandedState

    ExpandedState<TEnum, TState> state

    The ExpandedState describing the component

    FoldoutOption options

    Drawing options

    CoreEditorDrawer.ActionDrawer<>[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    TState

    Type of the persistent state

    FoldoutGroup<TEnum, TState>(String, TEnum, ExpandedState<TEnum, TState>, FoldoutOption, CoreEditorDrawer<TData>.IDrawer[])

    Create an IDrawer foldout header using an ExpandedState

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum, TState>(string title, TEnum mask, ExpandedState<TEnum, TState> state, FoldoutOption options, params CoreEditorDrawer<TData>.IDrawer[] contentDrawers)
        where TEnum : struct, IConvertible
    Parameters
    Type Name Description
    String title

    Title wanted for this foldout header

    TEnum mask

    Bit mask (enum) used to define the boolean saving the state in ExpandedState

    ExpandedState<TEnum, TState> state

    The ExpandedState describing the component

    FoldoutOption options

    Drawing options

    CoreEditorDrawer.IDrawer<>[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    TState

    Type of the persistent state

    FoldoutGroup<TEnum, TState>(GUIContent, TEnum, ExpandedState<TEnum, TState>, CoreEditorDrawer<TData>.ActionDrawer[])

    Create an IDrawer foldout header using an ExpandedState. The default option is Indent in this version.

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum, TState>(GUIContent title, TEnum mask, ExpandedState<TEnum, TState> state, params CoreEditorDrawer<TData>.ActionDrawer[] contentDrawers)
        where TEnum : struct, IConvertible
    Parameters
    Type Name Description
    GUIContent title

    Title wanted for this foldout header

    TEnum mask

    Bit mask (enum) used to define the boolean saving the state in ExpandedState

    ExpandedState<TEnum, TState> state

    The ExpandedState describing the component

    CoreEditorDrawer.ActionDrawer<>[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    TState

    Type of the persistent state

    FoldoutGroup<TEnum, TState>(GUIContent, TEnum, ExpandedState<TEnum, TState>, CoreEditorDrawer<TData>.IDrawer[])

    Create an IDrawer foldout header using an ExpandedState. The default option is Indent in this version.

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum, TState>(GUIContent title, TEnum mask, ExpandedState<TEnum, TState> state, params CoreEditorDrawer<TData>.IDrawer[] contentDrawers)
        where TEnum : struct, IConvertible
    Parameters
    Type Name Description
    GUIContent title

    Title wanted for this foldout header

    TEnum mask

    Bit mask (enum) used to define the boolean saving the state in ExpandedState

    ExpandedState<TEnum, TState> state

    The ExpandedState describing the component

    CoreEditorDrawer.IDrawer<>[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    TState

    Type of the persistent state

    FoldoutGroup<TEnum, TState>(GUIContent, TEnum, ExpandedState<TEnum, TState>, FoldoutOption, CoreEditorDrawer<TData>.ActionDrawer[])

    Create an IDrawer foldout header using an ExpandedState

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum, TState>(GUIContent title, TEnum mask, ExpandedState<TEnum, TState> state, FoldoutOption options, params CoreEditorDrawer<TData>.ActionDrawer[] contentDrawers)
        where TEnum : struct, IConvertible
    Parameters
    Type Name Description
    GUIContent title

    Title wanted for this foldout header

    TEnum mask

    Bit mask (enum) used to define the boolean saving the state in ExpandedState

    ExpandedState<TEnum, TState> state

    The ExpandedState describing the component

    FoldoutOption options

    Drawing options

    CoreEditorDrawer.ActionDrawer<>[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    TState

    Type of the persistent state

    FoldoutGroup<TEnum, TState>(GUIContent, TEnum, ExpandedState<TEnum, TState>, FoldoutOption, CoreEditorDrawer<TData>.IDrawer[])

    Create an IDrawer foldout header using an ExpandedState

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum, TState>(GUIContent title, TEnum mask, ExpandedState<TEnum, TState> state, FoldoutOption options, params CoreEditorDrawer<TData>.IDrawer[] contentDrawers)
        where TEnum : struct, IConvertible
    Parameters
    Type Name Description
    GUIContent title

    Title wanted for this foldout header

    TEnum mask

    Bit mask (enum) used to define the boolean saving the state in ExpandedState

    ExpandedState<TEnum, TState> state

    The ExpandedState describing the component

    FoldoutOption options

    Drawing options

    CoreEditorDrawer.IDrawer<>[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    TState

    Type of the persistent state

    Group(Single, CoreEditorDrawer<TData>.ActionDrawer[])

    Group of drawing function for inspector with a set width for labels

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer Group(float labelWidth, params CoreEditorDrawer<TData>.ActionDrawer[] contentDrawers)
    Parameters
    Type Name Description
    Single labelWidth

    Width used for all labels in the group

    CoreEditorDrawer.ActionDrawer<>[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Group(Single, CoreEditorDrawer<TData>.IDrawer[])

    Group of drawing function for inspector with a set width for labels

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer Group(float labelWidth, params CoreEditorDrawer<TData>.IDrawer[] contentDrawers)
    Parameters
    Type Name Description
    Single labelWidth

    Width used for all labels in the group

    CoreEditorDrawer.IDrawer<>[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Group(Single, GroupOption, CoreEditorDrawer<TData>.ActionDrawer[])

    Group of drawing function for inspector with a set width for labels

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer Group(float labelWidth, GroupOption options, params CoreEditorDrawer<TData>.ActionDrawer[] contentDrawers)
    Parameters
    Type Name Description
    Single labelWidth

    Width used for all labels in the group

    GroupOption options

    Allow to add indentation on this group

    CoreEditorDrawer.ActionDrawer<>[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Group(Single, GroupOption, CoreEditorDrawer<TData>.IDrawer[])

    Group of drawing function for inspector with a set width for labels

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer Group(float labelWidth, GroupOption options, params CoreEditorDrawer<TData>.IDrawer[] contentDrawers)
    Parameters
    Type Name Description
    Single labelWidth

    Width used for all labels in the group

    GroupOption options

    Allow to add indentation on this group

    CoreEditorDrawer.IDrawer<>[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Group(CoreEditorDrawer<TData>.ActionDrawer[])

    Group of drawing function for inspector. They will be drawn one after the other.

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

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Group(CoreEditorDrawer<TData>.IDrawer[])

    Group of drawing function for inspector. They will be drawn one after the other.

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer Group(params CoreEditorDrawer<TData>.IDrawer[] contentDrawers)
    Parameters
    Type Name Description
    CoreEditorDrawer.IDrawer<>[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Group(GroupOption, CoreEditorDrawer<TData>.ActionDrawer[])

    Group of drawing function for inspector. They will be drawn one after the other.

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer Group(GroupOption options, params CoreEditorDrawer<TData>.ActionDrawer[] contentDrawers)
    Parameters
    Type Name Description
    GroupOption options

    Allow to add indentation on this group

    CoreEditorDrawer.ActionDrawer<>[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Group(GroupOption, CoreEditorDrawer<TData>.IDrawer[])

    Group of drawing function for inspector. They will be drawn one after the other.

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer Group(GroupOption options, params CoreEditorDrawer<TData>.IDrawer[] contentDrawers)
    Parameters
    Type Name Description
    GroupOption options

    Allow to add indentation on this group

    CoreEditorDrawer.IDrawer<>[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Group(GUIContent, CoreEditorDrawer<TData>.ActionDrawer[])

    Group of drawing function for inspector with a set width for labels

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer Group(GUIContent header, params CoreEditorDrawer<TData>.ActionDrawer[] contentDrawers)
    Parameters
    Type Name Description
    GUIContent header

    Adds a header on top GUIContent

    CoreEditorDrawer.ActionDrawer<>[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Group(GUIContent, CoreEditorDrawer<TData>.IDrawer[])

    Group of drawing function for inspector with a set width for labels

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer Group(GUIContent header, params CoreEditorDrawer<TData>.IDrawer[] contentDrawers)
    Parameters
    Type Name Description
    GUIContent header

    Adds a header on top GUIContent

    CoreEditorDrawer.IDrawer<>[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Group(GUIContent, GroupOption, CoreEditorDrawer<TData>.ActionDrawer[])

    Group of drawing function for inspector with a set width for labels

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer Group(GUIContent header, GroupOption options, params CoreEditorDrawer<TData>.ActionDrawer[] contentDrawers)
    Parameters
    Type Name Description
    GUIContent header

    Adds a header on top GUIContent

    GroupOption options

    Allow to add indentation on this group

    CoreEditorDrawer.ActionDrawer<>[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Group(GUIContent, GroupOption, CoreEditorDrawer<TData>.IDrawer[])

    Group of drawing function for inspector with a set width for labels

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer Group(GUIContent header, GroupOption options, params CoreEditorDrawer<TData>.IDrawer[] contentDrawers)
    Parameters
    Type Name Description
    GUIContent header

    Adds a header on top GUIContent

    GroupOption options

    Allow to add indentation on this group

    CoreEditorDrawer.IDrawer<>[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Select<T2Data>(CoreEditorDrawer<TData>.DataSelect<T2Data>, CoreEditorDrawer<T2Data>.ActionDrawer[])

    Create an IDrawer based on an other data container

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer Select<T2Data>(CoreEditorDrawer<TData>.DataSelect<T2Data> dataSelect, params CoreEditorDrawer<T2Data>.ActionDrawer[] otherDrawers)
    Parameters
    Type Name Description
    CoreEditorDrawer.DataSelect<T2Data> dataSelect

    The data new source for the inner drawers

    CoreEditorDrawer.ActionDrawer<>[] otherDrawers

    Inner drawers drawed with given data sources

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Type Parameters
    Name Description
    T2Data

    Type of selected object containing in the given data containing data needed to draw inspector

    Select<T2Data>(CoreEditorDrawer<TData>.DataSelect<T2Data>, CoreEditorDrawer<T2Data>.IDrawer[])

    Create an IDrawer based on an other data container

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer Select<T2Data>(CoreEditorDrawer<TData>.DataSelect<T2Data> dataSelect, params CoreEditorDrawer<T2Data>.IDrawer[] otherDrawers)
    Parameters
    Type Name Description
    CoreEditorDrawer.DataSelect<T2Data> dataSelect

    The data new source for the inner drawers

    CoreEditorDrawer.IDrawer<>[] otherDrawers

    Inner drawers drawed with given data sources

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Type Parameters
    Name Description
    T2Data

    Type of selected object containing in the given data containing data needed to draw inspector

    TernaryConditional(CoreEditorDrawer<TData>.Enabler, CoreEditorDrawer<TData>.ActionDrawer, CoreEditorDrawer<TData>.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.Enabler<> switch

    Chose witch drawing to use

    CoreEditorDrawer.ActionDrawer<> drawIfTrue

    This will be draw if the is true

    CoreEditorDrawer.ActionDrawer<> drawIfFalse

    This will be draw if the is false

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    TernaryConditional(CoreEditorDrawer<TData>.Enabler, CoreEditorDrawer<TData>.IDrawer, CoreEditorDrawer<TData>.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.Enabler<> switch

    Chose witch drawing to use

    CoreEditorDrawer.IDrawer<> drawIfTrue

    This will be draw if the is true

    CoreEditorDrawer.IDrawer<> drawIfFalse

    This will be draw if the is false

    Returns
    Type Description
    CoreEditorDrawer.IDrawer<>

    A IDrawer object

    Back to top
    Terms of use
    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