docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CoreEditorDrawer<TData>

    Utility class to draw inspectors

    Inheritance
    object
    CoreEditorDrawer<TData>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Rendering
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    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<TData>.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<TData>.IDrawer

    Methods

    AdditionalPropertiesFoldoutGroup<TEnum, TAPEnum>(GUIContent, TEnum, ExpandedStateBase<TEnum>, TAPEnum, AdditionalPropertiesStateBase<TAPEnum>, ActionDrawer, ActionDrawer, FoldoutOption, Action<GenericMenu, TData>, string)

    Helper to draw a foldout with additional properties.

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer AdditionalPropertiesFoldoutGroup<TEnum, TAPEnum>(GUIContent foldoutTitle, TEnum foldoutMask, ExpandedStateBase<TEnum> foldoutState, TAPEnum additionalPropertiesMask, AdditionalPropertiesStateBase<TAPEnum> additionalPropertiesState, CoreEditorDrawer<TData>.ActionDrawer normalContent, CoreEditorDrawer<TData>.ActionDrawer additionalContent, FoldoutOption options = FoldoutOption.Indent, Action<GenericMenu, TData> customMenuContextAction = null, string otherDocumentation = null) 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 ExpandedStateBase

    ExpandedStateBase<TEnum> foldoutState

    The ExpandedStateBase describing the component

    TAPEnum additionalPropertiesMask

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

    AdditionalPropertiesStateBase<TAPEnum> additionalPropertiesState

    The AdditionalPropertiesStateBase describing the component

    CoreEditorDrawer<TData>.ActionDrawer normalContent

    The content of the foldout header always visible if expended.

    CoreEditorDrawer<TData>.ActionDrawer additionalContent

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

    FoldoutOption options

    Drawing options

    Action<GenericMenu, TData> customMenuContextAction

    Adds Addtional items to the menu activated from the burger menu.

    string otherDocumentation

    Custom documentation used for header.

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the foldout mask used.

    TAPEnum

    Type of the additional properties mask used.

    AdditionalPropertiesFoldoutGroup<TEnum, TAPEnum>(GUIContent, TEnum, ExpandedStateBase<TEnum>, TAPEnum, AdditionalPropertiesStateBase<TAPEnum>, ActionDrawer, IDrawer, FoldoutOption, Action<GenericMenu, TData>, string)

    Helper to draw a foldout with additional properties.

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer AdditionalPropertiesFoldoutGroup<TEnum, TAPEnum>(GUIContent foldoutTitle, TEnum foldoutMask, ExpandedStateBase<TEnum> foldoutState, TAPEnum additionalPropertiesMask, AdditionalPropertiesStateBase<TAPEnum> additionalPropertiesState, CoreEditorDrawer<TData>.ActionDrawer normalContent, CoreEditorDrawer<TData>.IDrawer additionalContent, FoldoutOption options = FoldoutOption.Indent, Action<GenericMenu, TData> customMenuContextAction = null, string otherDocumentation = null) 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 ExpandedStateBase

    ExpandedStateBase<TEnum> foldoutState

    The ExpandedStateBase describing the component

    TAPEnum additionalPropertiesMask

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

    AdditionalPropertiesStateBase<TAPEnum> additionalPropertiesState

    The AdditionalPropertiesStateBase describing the component

    CoreEditorDrawer<TData>.ActionDrawer normalContent

    The content of the foldout header always visible if expended.

    CoreEditorDrawer<TData>.IDrawer additionalContent

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

    FoldoutOption options

    Drawing options

    Action<GenericMenu, TData> customMenuContextAction

    Adds Addtional items to the menu activated from the burger menu.

    string otherDocumentation

    Custom documentation used for header.

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the foldout mask used.

    TAPEnum

    Type of the additional properties mask used.

    AdditionalPropertiesFoldoutGroup<TEnum, TAPEnum>(GUIContent, TEnum, ExpandedStateBase<TEnum>, TAPEnum, AdditionalPropertiesStateBase<TAPEnum>, IDrawer, ActionDrawer, FoldoutOption, Action<GenericMenu, TData>, string)

    Helper to draw a foldout with additional properties.

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer AdditionalPropertiesFoldoutGroup<TEnum, TAPEnum>(GUIContent foldoutTitle, TEnum foldoutMask, ExpandedStateBase<TEnum> foldoutState, TAPEnum additionalPropertiesMask, AdditionalPropertiesStateBase<TAPEnum> additionalPropertiesState, CoreEditorDrawer<TData>.IDrawer normalContent, CoreEditorDrawer<TData>.ActionDrawer additionalContent, FoldoutOption options = FoldoutOption.Indent, Action<GenericMenu, TData> customMenuContextAction = null, string otherDocumentation = null) 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 ExpandedStateBase

    ExpandedStateBase<TEnum> foldoutState

    The ExpandedStateBase describing the component

    TAPEnum additionalPropertiesMask

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

    AdditionalPropertiesStateBase<TAPEnum> additionalPropertiesState

    The AdditionalPropertiesStateBase describing the component

    CoreEditorDrawer<TData>.IDrawer normalContent

    The content of the foldout header always visible if expended.

    CoreEditorDrawer<TData>.ActionDrawer additionalContent

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

    FoldoutOption options

    Drawing options

    Action<GenericMenu, TData> customMenuContextAction

    Adds Addtional items to the menu activated from the burger menu.

    string otherDocumentation

    Custom documentation used for header.

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the foldout mask used.

    TAPEnum

    Type of the additional properties mask used.

    AdditionalPropertiesFoldoutGroup<TEnum, TAPEnum>(GUIContent, TEnum, ExpandedStateBase<TEnum>, TAPEnum, AdditionalPropertiesStateBase<TAPEnum>, IDrawer, IDrawer, FoldoutOption, Action<GenericMenu, TData>, string)

    Helper to draw a foldout with additional properties.

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer AdditionalPropertiesFoldoutGroup<TEnum, TAPEnum>(GUIContent foldoutTitle, TEnum foldoutMask, ExpandedStateBase<TEnum> foldoutState, TAPEnum additionalPropertiesMask, AdditionalPropertiesStateBase<TAPEnum> additionalPropertiesState, CoreEditorDrawer<TData>.IDrawer normalContent, CoreEditorDrawer<TData>.IDrawer additionalContent, FoldoutOption options = FoldoutOption.Indent, Action<GenericMenu, TData> customMenuContextAction = null, string otherDocumentation = null) 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 ExpandedStateBase

    ExpandedStateBase<TEnum> foldoutState

    The ExpandedStateBase describing the component

    TAPEnum additionalPropertiesMask

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

    AdditionalPropertiesStateBase<TAPEnum> additionalPropertiesState

    The AdditionalPropertiesStateBase describing the component

    CoreEditorDrawer<TData>.IDrawer normalContent

    The content of the foldout header always visible if expended.

    CoreEditorDrawer<TData>.IDrawer additionalContent

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

    FoldoutOption options

    Drawing options

    Action<GenericMenu, TData> customMenuContextAction

    Adds Addtional items to the menu activated from the burger menu.

    string otherDocumentation

    Custom documentation used for header.

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the foldout mask used.

    TAPEnum

    Type of the additional properties mask used.

    AdvancedFoldoutGroup<TEnum, TState>(GUIContent, TEnum, ExpandedState<TEnum, TState>, Enabler, SwitchEnabler, ActionDrawer, 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 ExpandedStateBase

    ExpandedState<TEnum, TState> foldoutState

    The ExpandedStateBase describing the component

    CoreEditorDrawer<TData>.Enabler isAdvanced

    Delegate allowing to check if advanced mode is active.

    CoreEditorDrawer<TData>.SwitchEnabler switchAdvanced

    Delegate to know what to do when advance is switched.

    CoreEditorDrawer<TData>.ActionDrawer normalContent

    The content of the foldout header always visible if expended.

    CoreEditorDrawer<TData>.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<TData>.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>, Enabler, SwitchEnabler, ActionDrawer, 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 ExpandedStateBase

    ExpandedState<TEnum, TState> foldoutState

    The ExpandedStateBase describing the component

    CoreEditorDrawer<TData>.Enabler isAdvanced

    Delegate allowing to check if advanced mode is active.

    CoreEditorDrawer<TData>.SwitchEnabler switchAdvanced

    Delegate to know what to do when advance is switched.

    CoreEditorDrawer<TData>.ActionDrawer normalContent

    The content of the foldout header always visible if expended.

    CoreEditorDrawer<TData>.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<TData>.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>, Enabler, SwitchEnabler, IDrawer, 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 ExpandedStateBase

    ExpandedState<TEnum, TState> foldoutState

    The ExpandedStateBase describing the component

    CoreEditorDrawer<TData>.Enabler isAdvanced

    Delegate allowing to check if advanced mode is active.

    CoreEditorDrawer<TData>.SwitchEnabler switchAdvanced

    Delegate to know what to do when advance is switched.

    CoreEditorDrawer<TData>.IDrawer normalContent

    The content of the foldout header always visible if expended.

    CoreEditorDrawer<TData>.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<TData>.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>, Enabler, SwitchEnabler, IDrawer, 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 ExpandedStateBase

    ExpandedState<TEnum, TState> foldoutState

    The ExpandedStateBase describing the component

    CoreEditorDrawer<TData>.Enabler isAdvanced

    Delegate allowing to check if advanced mode is active.

    CoreEditorDrawer<TData>.SwitchEnabler switchAdvanced

    Delegate to know what to do when advance is switched.

    CoreEditorDrawer<TData>.IDrawer normalContent

    The content of the foldout header always visible if expended.

    CoreEditorDrawer<TData>.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<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    TState

    Type of the persistent state

    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

    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

    FoldoutGroup<TEnum>(string, TEnum, ExpandedStateBase<TEnum>, params ActionDrawer[])

    Create an IDrawer foldout header using an ExpandedStateBase

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum>(string title, TEnum mask, ExpandedStateBase<TEnum> 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 ExpandedStateBase

    ExpandedStateBase<TEnum> state

    The ExpandedStateBase describing the component

    ActionDrawer[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    FoldoutGroup<TEnum>(string, TEnum, ExpandedStateBase<TEnum>, params IDrawer[])

    Create an IDrawer foldout header using an ExpandedStateBase

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum>(string title, TEnum mask, ExpandedStateBase<TEnum> 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 ExpandedStateBase

    ExpandedStateBase<TEnum> state

    The ExpandedStateBase describing the component

    IDrawer[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    FoldoutGroup<TEnum>(string, TEnum, ExpandedStateBase<TEnum>, FoldoutOption, Action<GenericMenu, TData>, string, params ActionDrawer[])

    Create an IDrawer foldout header using an ExpandedStateBase

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum>(string title, TEnum mask, ExpandedStateBase<TEnum> state, FoldoutOption options, Action<GenericMenu, TData> customMenuContextAction, string otherDocumentation, 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 ExpandedStateBase

    ExpandedStateBase<TEnum> state

    The ExpandedStateBase describing the component

    FoldoutOption options

    Drawing options

    Action<GenericMenu, TData> customMenuContextAction

    Adds Addtional items to the menu activated from the burger menu.

    string otherDocumentation

    Custom documentation used for header.

    ActionDrawer[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    FoldoutGroup<TEnum>(string, TEnum, ExpandedStateBase<TEnum>, FoldoutOption, Action<GenericMenu, TData>, string, params IDrawer[])

    Create an IDrawer foldout header using an ExpandedStateBase

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum>(string title, TEnum mask, ExpandedStateBase<TEnum> state, FoldoutOption options, Action<GenericMenu, TData> customMenuContextAction, string otherDocumentation, 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 ExpandedStateBase

    ExpandedStateBase<TEnum> state

    The ExpandedStateBase describing the component

    FoldoutOption options

    Drawing options

    Action<GenericMenu, TData> customMenuContextAction

    Adds Addtional items to the menu activated from the burger menu.

    string otherDocumentation

    Custom documentation used for header.

    IDrawer[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    FoldoutGroup<TEnum>(string, TEnum, ExpandedStateBase<TEnum>, FoldoutOption, Action<GenericMenu, TData>, params ActionDrawer[])

    Create an IDrawer foldout header using an ExpandedStateBase

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum>(string title, TEnum mask, ExpandedStateBase<TEnum> state, FoldoutOption options, Action<GenericMenu, TData> customMenuContextAction, 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 ExpandedStateBase

    ExpandedStateBase<TEnum> state

    The ExpandedStateBase describing the component

    FoldoutOption options

    Drawing options

    Action<GenericMenu, TData> customMenuContextAction

    Adds Addtional items to the menu activated from the burger menu.

    ActionDrawer[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    FoldoutGroup<TEnum>(string, TEnum, ExpandedStateBase<TEnum>, FoldoutOption, Action<GenericMenu, TData>, params IDrawer[])

    Create an IDrawer foldout header using an ExpandedStateBase

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum>(string title, TEnum mask, ExpandedStateBase<TEnum> state, FoldoutOption options, Action<GenericMenu, TData> customMenuContextAction, 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 ExpandedStateBase

    ExpandedStateBase<TEnum> state

    The ExpandedStateBase describing the component

    FoldoutOption options

    Drawing options

    Action<GenericMenu, TData> customMenuContextAction

    Adds Addtional items to the menu activated from the burger menu.

    IDrawer[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    FoldoutGroup<TEnum>(string, TEnum, ExpandedStateBase<TEnum>, FoldoutOption, params ActionDrawer[])

    Create an IDrawer foldout header using an ExpandedStateBase

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum>(string title, TEnum mask, ExpandedStateBase<TEnum> 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 ExpandedStateBase

    ExpandedStateBase<TEnum> state

    The ExpandedStateBase describing the component

    FoldoutOption options

    Drawing options

    ActionDrawer[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    FoldoutGroup<TEnum>(string, TEnum, ExpandedStateBase<TEnum>, FoldoutOption, params IDrawer[])

    Create an IDrawer foldout header using an ExpandedStateBase

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum>(string title, TEnum mask, ExpandedStateBase<TEnum> 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 ExpandedStateBase

    ExpandedStateBase<TEnum> state

    The ExpandedStateBase describing the component

    FoldoutOption options

    Drawing options

    IDrawer[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    FoldoutGroup<TEnum>(GUIContent, TEnum, ExpandedStateBase<TEnum>, params ActionDrawer[])

    Create an IDrawer foldout header using an ExpandedStateBase

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum>(GUIContent title, TEnum mask, ExpandedStateBase<TEnum> 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 ExpandedStateBase

    ExpandedStateBase<TEnum> state

    The ExpandedStateBase describing the component

    ActionDrawer[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    FoldoutGroup<TEnum>(GUIContent, TEnum, ExpandedStateBase<TEnum>, params IDrawer[])

    Create an IDrawer foldout header using an ExpandedStateBase

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum>(GUIContent title, TEnum mask, ExpandedStateBase<TEnum> 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 ExpandedStateBase

    ExpandedStateBase<TEnum> state

    The ExpandedStateBase describing the component

    IDrawer[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    FoldoutGroup<TEnum>(GUIContent, TEnum, ExpandedStateBase<TEnum>, FoldoutOption, Action<GenericMenu, TData>, string, params ActionDrawer[])

    Create an IDrawer foldout header using an ExpandedStateBase

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum>(GUIContent title, TEnum mask, ExpandedStateBase<TEnum> state, FoldoutOption options, Action<GenericMenu, TData> customMenuContextAction, string otherDocumentation, 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 ExpandedStateBase

    ExpandedStateBase<TEnum> state

    The ExpandedStateBase describing the component

    FoldoutOption options

    Drawing options

    Action<GenericMenu, TData> customMenuContextAction

    Adds Addtional items to the menu activated from the burger menu.

    string otherDocumentation

    Custom documentation used for header.

    ActionDrawer[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    FoldoutGroup<TEnum>(GUIContent, TEnum, ExpandedStateBase<TEnum>, FoldoutOption, Action<GenericMenu, TData>, string, params IDrawer[])

    Create an IDrawer foldout header using an ExpandedStateBase

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum>(GUIContent title, TEnum mask, ExpandedStateBase<TEnum> state, FoldoutOption options, Action<GenericMenu, TData> customMenuContextAction, string otherDocumentation, 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 ExpandedStateBase

    ExpandedStateBase<TEnum> state

    The ExpandedStateBase describing the component

    FoldoutOption options

    Drawing options

    Action<GenericMenu, TData> customMenuContextAction

    Adds Addtional items to the menu activated from the burger menu.

    string otherDocumentation

    Custom documentation used for header.

    IDrawer[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    FoldoutGroup<TEnum>(GUIContent, TEnum, ExpandedStateBase<TEnum>, FoldoutOption, Action<GenericMenu, TData>, params ActionDrawer[])

    Create an IDrawer foldout header using an ExpandedStateBase

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum>(GUIContent title, TEnum mask, ExpandedStateBase<TEnum> state, FoldoutOption options, Action<GenericMenu, TData> customMenuContextAction, 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 ExpandedStateBase

    ExpandedStateBase<TEnum> state

    The ExpandedStateBase describing the component

    FoldoutOption options

    Drawing options

    Action<GenericMenu, TData> customMenuContextAction

    Adds Addtional items to the menu activated from the burger menu.

    ActionDrawer[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    FoldoutGroup<TEnum>(GUIContent, TEnum, ExpandedStateBase<TEnum>, FoldoutOption, Action<GenericMenu, TData>, params IDrawer[])

    Create an IDrawer foldout header using an ExpandedStateBase

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum>(GUIContent title, TEnum mask, ExpandedStateBase<TEnum> state, FoldoutOption options, Action<GenericMenu, TData> customMenuContextAction, 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 ExpandedStateBase

    ExpandedStateBase<TEnum> state

    The ExpandedStateBase describing the component

    FoldoutOption options

    Drawing options

    Action<GenericMenu, TData> customMenuContextAction

    Adds Addtional items to the menu activated from the burger menu.

    IDrawer[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    FoldoutGroup<TEnum>(GUIContent, TEnum, ExpandedStateBase<TEnum>, FoldoutOption, params ActionDrawer[])

    Create an IDrawer foldout header using an ExpandedStateBase

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum>(GUIContent title, TEnum mask, ExpandedStateBase<TEnum> 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 ExpandedStateBase

    ExpandedStateBase<TEnum> state

    The ExpandedStateBase describing the component

    FoldoutOption options

    Drawing options

    ActionDrawer[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    FoldoutGroup<TEnum>(GUIContent, TEnum, ExpandedStateBase<TEnum>, FoldoutOption, params IDrawer[])

    Create an IDrawer foldout header using an ExpandedStateBase

    Declaration
    public static CoreEditorDrawer<TData>.IDrawer FoldoutGroup<TEnum>(GUIContent title, TEnum mask, ExpandedStateBase<TEnum> 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 ExpandedStateBase

    ExpandedStateBase<TEnum> state

    The ExpandedStateBase describing the component

    FoldoutOption options

    Drawing options

    IDrawer[] contentDrawers

    The content of the foldout header

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Type Parameters
    Name Description
    TEnum

    Type of the mask used

    Group(float, params 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
    float labelWidth

    Width used for all labels in the group

    ActionDrawer[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Group(float, params 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
    float labelWidth

    Width used for all labels in the group

    IDrawer[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Group(float, GroupOption, params 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
    float labelWidth

    Width used for all labels in the group

    GroupOption options

    Allow to add indentation on this group

    ActionDrawer[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Group(float, GroupOption, params 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
    float labelWidth

    Width used for all labels in the group

    GroupOption options

    Allow to add indentation on this group

    IDrawer[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Group(params 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
    ActionDrawer[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Group(params 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
    IDrawer[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Group(GroupOption, params 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

    ActionDrawer[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Group(GroupOption, params 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

    IDrawer[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Group(GUIContent, params 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

    ActionDrawer[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Group(GUIContent, params 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

    IDrawer[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Group(GUIContent, GroupOption, params 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

    ActionDrawer[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Group(GUIContent, GroupOption, params 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

    IDrawer[] contentDrawers

    The content of the group

    Returns
    Type Description
    CoreEditorDrawer<TData>.IDrawer

    A IDrawer object

    Select<T2Data>(DataSelect<T2Data>, params 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<TData>.DataSelect<T2Data> dataSelect

    The data new source for the inner drawers

    ActionDrawer[] otherDrawers

    Inner drawers drawed with given data sources

    Returns
    Type Description
    CoreEditorDrawer<TData>.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>(DataSelect<T2Data>, params 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<TData>.DataSelect<T2Data> dataSelect

    The data new source for the inner drawers

    IDrawer[] otherDrawers

    Inner drawers drawed with given data sources

    Returns
    Type Description
    CoreEditorDrawer<TData>.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(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

    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

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