get_unityVersion is not allowed to be called from a ScriptableObject constructor

Issue #56 resolved
Former user created an issue

Using Unity 2017.1b4 and I get this error when trying to enable Unity Type drawers:

get_unityVersion is not allowed to be called from a ScriptableObject constructor (or instance field initializer), call it in OnEnable instead. Called from ScriptableObject 'Sirenix_Serialization_GlobalSerializationConfig_Editor'. See "Script Serialization" page in the Unity Manual for further details. UnityEngine.Application:get_unityVersion() Sirenix.Utilities.UnityVersion:.cctor() (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.Utilities/Misc/UnityVersion.cs:20) Sirenix.OdinInspector.Editor.OdinEditor:.cctor() (at C:/Users/Bjarke/Desktop/Projects/Sirenix Development Framework/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/OdinEditor.cs:33) Sirenix.OdinInspector.GeneratedEditors.Sirenix_Serialization_GlobalSerializationConfig_Editor:.ctor()

Comments (2)

  1. Tor Esa Vestergaard
    • changed status to open

    Hi, and thanks for reporting the issue. We're aware of some issues using Odin in the 2017 beta; we're working to resolve them as promptly as possible.

  2. Log in to comment