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'.

namespace Sirenix.OdinInspector.Editor
{
[UnityEditor.InitializeOnLoadAttribute]
[Sirenix.Utilities.SirenixEditorConfigAttribute]
public class GeneralDrawerConfig : GlobalConfig<GeneralDrawerConfig>
}

Requirements

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Properties

Return Type Definition Description
bool DrawEnumTypeTitle Gets or sets a value indicating whether [use improved enum drop down].
bool ExpandFoldoutByDefault If set to true, most foldouts throughout the inspector will be expanded by default.
float GUIFoldoutAnimationDuration Specify the animation speed for most foldouts throughout the inspector.
bool HideFoldoutWhileEmpty Specifies whether a list should hide the foldout triangle when the list is empty.
bool HidePagingWhileCollapsed Specify whether or not lists should hide the paging buttons when the list is collapsed.
bool HidePagingWhileOnlyOnePage Specify whether or not lists should hide the paging buttons when there is only one page.
int MaxRecursiveDrawDepth Specifies the maximum depth to which a property can draw itself recursively before the system refuses to draw it any deeper.
int NumberOfItemsPrPage Specify the number of elements drawn per page.
bool OpenListsByDefault Specify whether or not lists should be expanded or collapsed by default.
QuaternionDrawMode QuaternionDrawMode Specify how the Quaternion struct should be shown in the inspector.
bool ResponsiveVectorComponentFields When true the component labels, for vector fields, will be hidden when the field is too narrow.
float ShakingAnimationDuration Specify the shaking duration for most shaking animations throughout the inspector.
bool ShowExpandButton Specify whether or not to include a button which expands the list, showing all pages at once.
bool ShowIndexLabels Specify whether or not lists should show item count.
bool ShowItemCount Specify whether or not lists should show item count.
bool ShowMonoScriptInEditor Specify whether or not the script selector above components should be drawn.
bool ShowPagingInTables Specify whether or not a list should hide the foldout triangle when the list is empty.
bool ShowPrefabModificationsDisabledMessage Specify whether or not the warning for properties that do not support prefab modifications should be shown in the inspector.
ObjectFieldAlignment SquareUnityObjectAlignment Gets or sets the default alignment of the preview object field.
UnityObjectType SquareUnityObjectEnableFor Gets or sets which types should be drawn by default by the preview object field.
float SquareUnityObjectFieldHeight Gets or sets the default size of the preview object field.
float TabPageSlideAnimationDuration Specify the animation speed for TabGroupAttribute
bool UseImprovedEnumDropDown Gets or sets a value indicating whether [use improved enum drop down].

Methods

Return Type Definition Description
void ResetToDefault() Resets all settings to default.