Version 2.1.0.0

EditorOnlyModeConfig class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
[GlobalConfig(UseAsset = false)]
public sealed class EditorOnlyModeConfig : GlobalConfig<EditorOnlyModeConfig>
Editor Only Mode Utility.
Inheritance

Constructors

EditorOnlyModeConfig()
public EditorOnlyModeConfig()

Methods

DisableEditorOnlyMode()
Disables Editor Only Mode.
[Button(ButtonSizes.Gigantic)]
[GUIColor(1F, 0.8F, 0F, 1F)]
[EnableIf("SerializationModeIsForceText")]
[ShowIf("ShowDisableEditorOnlyMode", true)]
[DisableIf("EditorOnlyBuild")]
[PropertyOrder(-8)]
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()