Version 3.0.1.0

EditorOnlyModeConfig class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public sealed class EditorOnlyModeConfig
Editor Only Mode Utility.
Inheritance
  • System.Object
  • EditorOnlyModeConfig

Properties

Instance
public static EditorOnlyModeConfig Instance { get; }

Methods

DisableEditorOnlyMode()
Disables Editor Only Mode.
[Button(ButtonSizes.Gigantic)]
[GUIColor(1F, 0.8F, 0F, 1F)]
[EnableIf("SerializationModeIsForceText")]
[ShowIf("ShowDisableEditorOnlyMode", true)]
[DisableIf("EditorOnlyBuild")]
[PropertyOrder(-8F)]
public void DisableEditorOnlyMode()
EnableEditorOnlyMode(Boolean)
Enables editor only mode.
public void EnableEditorOnlyMode(bool force)
Parameters
System.Boolean force

IsEditorOnlyModeEnabled()
Checks to see whether Editor Only Mode is enabled.
public bool IsEditorOnlyModeEnabled()
Returns
System.Boolean

IsInSourceCode()
Checks to see whether Odin Inspector is installed in Source Code mode.
public bool IsInSourceCode()
Returns
System.Boolean

Update()
Gaither all necessary information about the editor only state.
public void Update()