this is generated in this case for a template in a entity.
- Code: Select all
UnityException: ScriptableObject.ctor is not allowed to be called during serialization, call it from OnEnable instead. Called from ScriptableObject 'Faction'.
See "Script Serialization" page in the Unity Manual for further details.
UnityEngine.ScriptableObject..ctor () (at C:/buildslave/unity/build/artifacts/generated/common/runtime/BaseClassBindings.gen.cs:461)
Articy.Unity.ArticyObject..ctor ()
Articy.Eyes_In_Shadow.Entity..ctor () (at Assets/ArticyContent/Generated/Entity.cs:50)
Articy.Eyes_In_Shadow.Faction..ctor () (at Assets/ArticyContent/Generated/Faction.cs:27)
Articy.Eyes_In_Shadow.Features.BasicCharacterFeature..ctor () (at Assets/ArticyContent/Generated/Features/BasicCharacterFeature.cs:31)
the offending generated code is
- Code: Select all
[SerializeField()]
private PreviewImage mPreviewImage = new PreviewImage();