I’m migrating from 0.51 to 1.0. I’ve removed all the ConvertTo components and added the corresponding bakers, and I updated the API changes accordingly. In short, my IDE is green again and also the code generation works when switching back to Unity.
Now, with literally an empty scene, I create a new SubScene, select it, and get this in the editor:
NullReferenceException: Object reference not set to an instance of an object
Unity.Scenes.Editor.SubSceneInspectorUtility.GetLoadableScenes (Unity.Scenes.SubScene[] scenes) (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Scenes.Editor/SubSceneInspectorUtility.cs:110)
Unity.Scenes.Editor.SubSceneInspector.OnInspectorGUI () (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Scenes.Editor/SubSceneInspector.cs:343)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass71_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <f7044ab663d344a2badf1160e57d1c1d>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
So it seems that World.DefaultGameObjectInjectionWorld
is null.
What did I miss?
It’s an open source game and my current branch is here in case anyone wants to have a look.