Version 2.1.0.0

EditorOnlyModeConfigUtility class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.Serialization
public static class EditorOnlyModeConfigUtility
Inheritance
  • System.Object
  • EditorOnlyModeConfigUtility

Fields

SERIALIZATION_DISABLED_ERROR_TEXT
public const string SERIALIZATION_DISABLED_ERROR_TEXT = "ERROR: EDITOR ONLY MODE ENABLED\n\nOdin is currently in editor only mode, meaning the serialization system is disabled in builds. This class is specially serialized by Odin - if you try to compile with this class in your project, you *will* get compiler errors. Either disable editor only mode in Tools -> Odin Inspector -> Preferences -> Editor Only Mode, or make sure that this type does not inherit from a type that is serialized by Odin."

Properties

IsSerializationEnabled
public static bool IsSerializationEnabled { get; }

Methods

InternalOnInspectorGUI(Object)
public static void InternalOnInspectorGUI(Object obj)
Parameters
UnityEngine.Object obj

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.