Version 2.1.0.0

GeneralDrawerConfig class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
[SirenixEditorConfig]
public class GeneralDrawerConfig : GlobalConfig<GeneralDrawerConfig>

Contains general configuration for all Odin drawers.

You can modify the configuration in the Odin Preferences window found in 'Tools -> Odin Inspector -> Preferences -> Drawers -> General', or by locating the configuration file stored as a serialized object in the Sirenix folder under 'Odin Inspector/Config/Editor/GeneralDrawerConfig'.

Inheritance

Constructors

GeneralDrawerConfig()
public GeneralDrawerConfig()

Properties

DrawEnumTypeTitle
Gets or sets a value indicating whether [use improved enum drop down].
[TabGroup("Enums", false, 0)]
[ShowInInspector]
[EnableIf("UseImprovedEnumDropDown")]
public bool DrawEnumTypeTitle { get; set; }
ExpandFoldoutByDefault
If set to true, most foldouts throughout the inspector will be expanded by default.
[TabGroup("General", false, 0)]
[ShowInInspector]
[PropertyTooltip("If set to true, most foldouts throughout the inspector will be expanded by default.")]
public bool ExpandFoldoutByDefault { get; set; }
GUIFoldoutAnimationDuration
Specify the animation speed for most foldouts throughout the inspector.
[TabGroup("Animations", false, 0)]
[ShowInInspector]
[PropertyRange(0.0010000000474974513, 4)]
[PropertyTooltip("Specify the animation speed for most foldouts throughout the inspector.")]
public float GUIFoldoutAnimationDuration { get; set; }
HideFoldoutWhileEmpty
Specifies whether a list should hide the foldout triangle when the list is empty.
[TabGroup("Collections", false, 0)]
[ShowInInspector]
[PropertyTooltip("Specifies whether a list should hide the foldout triangle when the list is empty.")]
public bool HideFoldoutWhileEmpty { get; set; }
HidePagingWhileCollapsed
Specify whether or not lists should hide the paging buttons when the list is collapsed.
[InfoBox("All collection settings - and more - can be overridden for individual collections using the ListDrawerSettings attribute.", InfoMessageType.Info, null)]
[TabGroup("Collections", false, 0)]
[ShowInInspector]
[PropertyTooltip("Specify whether or not lists should hide the paging buttons when the list is collapsed.")]
public bool HidePagingWhileCollapsed { get; set; }
HidePagingWhileOnlyOnePage
Specify whether or not lists should hide the paging buttons when there is only one page.
[TabGroup("Collections", false, 0)]
[ShowInInspector]
public bool HidePagingWhileOnlyOnePage { get; set; }
MaxRecursiveDrawDepth
Specifies the maximum depth to which a property can draw itself recursively before the system refuses to draw it any deeper.
[TabGroup("General", false, 0)]
[ShowInInspector]
[PropertyTooltip("Specifies the maximum depth to which a property can draw itself recursively before the system refuses to draw it any deeper.")]
[MinValue(1)]
[MaxValue(100)]
public int MaxRecursiveDrawDepth { get; set; }
NumberOfItemsPrPage
Specify the number of elements drawn per page.
[TabGroup("Collections", false, 0)]
[ShowInInspector]
[OnValueChanged("ResizeExampleList", false)]
[MaxValue(500)]
[MinValue(2)]
[PropertyTooltip("Specify the number of elements drawn per page.")]
[LabelText("Number Of Items Per Page")]
public int NumberOfItemsPrPage { get; set; }
OpenListsByDefault
Specify whether or not lists should be expanded or collapsed by default.
[TabGroup("Collections", false, 0)]
[ShowInInspector]
[PropertyTooltip("Specify whether or not lists should be expanded or collapsed by default.")]
public bool OpenListsByDefault { get; set; }
QuaternionDrawMode
Specify how the Quaternion struct should be shown in the inspector.
[TabGroup("Structs", false, 0)]
[ShowInInspector]
[EnumToggleButtons]
[PropertyTooltip("Current mode for how quaternions are edited in the inspector.\n\nEuler: Rotations as yaw, pitch and roll.\n\nAngle axis: Rotations as a axis of rotation, and an angle of rotation around that axis.\n\nRaw: Directly edit the x, y, z and w components of a quaternion.")]
public QuaternionDrawMode QuaternionDrawMode { get; set; }
ResponsiveVectorComponentFields
When true the component labels, for vector fields, will be hidden when the field is too narrow.
[TabGroup("Structs", false, 0)]
[ShowInInspector]
[PropertyTooltip("When on the component labels, for vector fields, will be hidden when the field is too narrow.\nThis allows more space for the actual component fields themselves.")]
public bool ResponsiveVectorComponentFields { get; set; }
ShakingAnimationDuration
Specify the shaking duration for most shaking animations throughout the inspector.
[TabGroup("Animations", false, 0)]
[ShowInInspector]
[PropertyTooltip("Specify the shaking duration for most shaking animations throughout the inspector.")]
[PropertyRange(0, 4)]
public float ShakingAnimationDuration { get; set; }
ShowExpandButton
Specify whether or not to include a button which expands the list, showing all pages at once.
[TabGroup("Collections", false, 0)]
[ShowInInspector]
[PropertyTooltip("Specify whether or not to include a button which expands the list, showing all pages at once")]
public bool ShowExpandButton { get; set; }
ShowIndexLabels
Specify whether or not lists should show item count.
[TabGroup("Collections", false, 0)]
[ShowInInspector]
[PropertyTooltip("Specify whether or not lists should show item count.")]
public bool ShowIndexLabels { get; set; }
ShowItemCount
Specify whether or not lists should show item count.
[TabGroup("Collections", false, 0)]
[ShowInInspector]
[PropertyTooltip("Specify whether or not lists should show item count.")]
public bool ShowItemCount { get; set; }
ShowMonoScriptInEditor
Specify whether or not the script selector above components should be drawn.
[TabGroup("General", false, 0)]
[ShowInInspector]
[PropertyTooltip("Specify whether or not the script selector above components should be drawn")]
public bool ShowMonoScriptInEditor { get; set; }
ShowPagingInTables
Specify whether or not a list should hide the foldout triangle when the list is empty.
[TabGroup("Collections", false, 0)]
[ShowInInspector]
[PropertyTooltip("Specifies whether all tables should include paging, or ")]
public bool ShowPagingInTables { get; set; }
ShowPrefabModificationsDisabledMessage
Specify whether or not the warning for properties that do not support prefab modifications should be shown in the inspector.
[TabGroup("General", false, 0)]
[ShowInInspector]
[PropertyTooltip("Specify whether or not the warning for properties that do not support prefab modifications should be shown in the inspector")]
public bool ShowPrefabModificationsDisabledMessage { get; set; }
SquareUnityObjectAlignment
Gets or sets the default alignment of the preview object field.
[TabGroup("Object Fields", false, 0)]
[ShowInInspector]
[EnumToggleButtons]
public ObjectFieldAlignment SquareUnityObjectAlignment { get; set; }
SquareUnityObjectEnableFor
Gets or sets which types should be drawn by default by the preview object field.
[LabelText("Enable Globally For")]
[TabGroup("Object Fields", false, 0)]
[ShowInInspector]
public GeneralDrawerConfig.UnityObjectType SquareUnityObjectEnableFor { get; set; }
SquareUnityObjectFieldHeight
Gets or sets the default size of the preview object field.
[TabGroup("Object Fields", false, 0)]
[ShowInInspector]
public float SquareUnityObjectFieldHeight { get; set; }
TabPageSlideAnimationDuration
Specify the animation speed for TabGroupAttribute
[TabGroup("Animations", false, 0)]
[ShowInInspector]
[PropertyRange(0.0010000000474974513, 4)]
public float TabPageSlideAnimationDuration { get; set; }
UseImprovedEnumDropDown
Gets or sets a value indicating whether [use improved enum drop down].
[TabGroup("Enums", false, 0)]
[ShowInInspector]
public bool UseImprovedEnumDropDown { get; set; }

Methods

ResetToDefault()
Resets all settings to default.
[Button(ButtonSizes.Large)]
[PropertyOrder(1000)]
public void ResetToDefault()

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.