Hi thewalrusnp,
Your additional information and investigation is greatly appreciated!
Could you please tell me what unity and what plugin version you are using? The plugin version can be found in the bottom of the DatabaseView, in the same area of the inspector.
While investigating your bug, i found another one that is very similar. In my case the Hierarchy object is always null after a closing and reopening unity. To check that, could you send me a screenshot of the the inspector of the articy database.
To do that, navigate to
Assets/Generated/Resources/ArticyDatabase.asset. Now you usually see the normal database view, but you need to switch the inspector to
debug. You can find this in the tabbar of the inspector the icon on the far right. To switch back later, just check normal.
- inspector_database.png (29.98 KiB) Viewed 20326 times
If possible, could you try to check if this problem usually occurs after a recent reimport of the articy:draft export? One of my ideas is that a missing save call is causing this, so you reimport, close the editor and the change is not properly stored. But if you work fine for longer periods of time, no reimport, saving the project, closing and reopening it and its null again, then it must be something else.
We do use Collab that is the built-in source management provided by Unity.
While i doubt that this could be a problem its at least something thats different from my machine. I will try to check on that.
I just looked at the ArticyScriptFragment.cs file and since I reimported the data, I do see difference in the ArticyCodeGenerationHashAttribute and also for the Script_***() methods. Does it mean that when my coworker reimport data and submit ArticyScriptFragment.cs, upon synching on my side the deserialize won't work ?
Don't worry that is normal. But it is true that this is annoying when working with any source control managment software, for the next release of the plugin i plan to address that by modifying how the generated folder is structured to allow completely setting on folder on ignore and not commit those changes at all.
As you can see i'm still a bit in the dark, so any bits of help are welcome!
Thank you for your help to fix this bug!
Best regards
Nico