we are bundling a BehaviourTreeOwner attached to a GameObject into an AssetBundle (for iOS, Android or WebGL). When loading this AssetBundle inside the Unity3D Editor in play mode – we are getting an Exception in the migration code starting here:
1
2
3
4
5
6
7
8
9
10
NodeCanvas.Framework.GraphOwner.cs:L253
protectedvoidOnValidate()
{
...
DestroyImmediate(graph);
...
}
Our guess is that the hasUpdated2_1 property is not serialized properly in the actual Graph & therefor in the AssetBundle – which does lead to another migration while in play mode inside the Editor.
Thanks for the information as well as the found cause of this problem.
Yes, I will take a look at properly fixing this in the next update. Maybe even removing this update fix completely, since that is about for a year there now already and no longer really required.