Class CoreEditorDrawer<TData>
Utility class to draw inspectors
Inherited Members
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, TState, TAPEnum, TAPState>(GUIContent, TEnum, ExpandedState<TEnum, TState>, TAPEnum, AdditionalPropertiesState<TAPEnum, TAPState>, ActionDrawer, 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<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 |
Returns
Type | Description |
---|---|
CoreEditorDrawer<TData>.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>, ActionDrawer, 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<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 |
Returns
Type | Description |
---|---|
CoreEditorDrawer<TData>.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>, IDrawer, 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<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 |
Returns
Type | Description |
---|---|
CoreEditorDrawer<TData>.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>, IDrawer, 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<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 |
Returns
Type | Description |
---|---|
CoreEditorDrawer<TData>.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>, 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 ExpandedState |
ExpandedState<TEnum, TState> | foldoutState | The ExpandedState 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 ExpandedState |
ExpandedState<TEnum, TState> | foldoutState | The ExpandedState 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 ExpandedState |
ExpandedState<TEnum, TState> | foldoutState | The ExpandedState 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 ExpandedState |
ExpandedState<TEnum, TState> | foldoutState | The ExpandedState 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, TState>(string, TEnum, ExpandedState<TEnum, TState>, params 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 |
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 |
TState | Type of the persistent state |
FoldoutGroup<TEnum, TState>(string, TEnum, ExpandedState<TEnum, TState>, params 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 |
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 |
TState | Type of the persistent state |
FoldoutGroup<TEnum, TState>(string, TEnum, ExpandedState<TEnum, TState>, FoldoutOption, params 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 |
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 |
TState | Type of the persistent state |
FoldoutGroup<TEnum, TState>(string, TEnum, ExpandedState<TEnum, TState>, FoldoutOption, params 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 |
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 |
TState | Type of the persistent state |
FoldoutGroup<TEnum, TState>(GUIContent, TEnum, ExpandedState<TEnum, TState>, params 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 |
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 |
TState | Type of the persistent state |
FoldoutGroup<TEnum, TState>(GUIContent, TEnum, ExpandedState<TEnum, TState>, params 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 |
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 |
TState | Type of the persistent state |
FoldoutGroup<TEnum, TState>(GUIContent, TEnum, ExpandedState<TEnum, TState>, FoldoutOption, params 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 |
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 |
TState | Type of the persistent state |
FoldoutGroup<TEnum, TState>(GUIContent, TEnum, ExpandedState<TEnum, TState>, FoldoutOption, params 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 |
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 |
TState | Type of the persistent state |
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 |