Version 3.3.0.1

InspectorConfig class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
[SirenixEditorConfig]
public class InspectorConfig : GlobalConfig<InspectorConfig>, IGlobalConfigEvents, ISerializationCallbackReceiver

Tell Odin which types should be drawn or should not be drawn by Odin.

You can modify which types should be drawn by Odin in the Preferences window found in 'Tools -> Odin Inspector -> Preferences -> Editor Types', or by locating the configuration file stored as a serialized object in the Sirenix folder under 'Odin Inspector/Config/Editor/InspectorConfig'.

Inheritance
Implements
  • UnityEngine.ISerializationCallbackReceiver

Constructors

InspectorConfig()
public InspectorConfig()

Properties

DefaultEditorBehaviour
InspectorDefaultEditors is a bitmask used to tell which types should have an Odin Editor generated.
public InspectorDefaultEditors DefaultEditorBehaviour { get; set; }
DrawingConfig
The config which contains configuration data for which types Odin should draw in the inspector.
public InspectorTypeDrawingConfig DrawingConfig { get; }
EnableOdinInInspector
Whether Odin is enabled in the inspector or not.
public bool EnableOdinInInspector { get; set; }

Methods

UpdateAndRefreshInspector()
[Button("Update Editors", 22, DisplayParameters = false)]
[HorizontalGroup(100F, 0, 0, 0F)]
public void UpdateAndRefreshInspector()
UpdateOdinEditors()
Updates Unity with the current Odin editor configuration.
public void UpdateOdinEditors()