- changed status to open
get_unityVersion is not allowed to be called from a ScriptableObject constructor
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)
-
-
- changed status to resolved
This error has been fixed in a patch that we will be pushing out promptly.
- Log in to comment
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.