Version 2.1.0.0

InspectorConfig class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
[SirenixEditorConfig]
public class InspectorConfig : GlobalConfig<InspectorConfig>, 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

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

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.