#unity subscene import fails, how to debug it

1 messages · Page 1 of 1 (latest)

limber elk
#

In my project I have 5 subscene which import well and without error. ( the first image)

When I play, unity creates other subscenes for dependencies but two of them crashes at import

  Time since last request: 1218025.068068 seconds.
  path: Assets/SceneDependencyCache/604079b0e4bc625e60600c03b8f931ae.sceneWithBuildSettings
  artifactKey: Guid(604079b0e4bc625e60600c03b8f931ae) Importer(2089858483,52bed625d08a7023a15481c3fbd73797)
Start importing Assets/SceneDependencyCache/604079b0e4bc625e60600c03b8f931ae.sceneWithBuildSettings using Guid(604079b0e4bc625e60600c03b8f931ae) Importer(2089858483,52bed625d08a7023a15481c3fbd73797) ProgressiveSceneManager::Cancel()
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Given the current application state, request to unload unused assets is being delayed.```

```Unloading the last loaded scene (build index: -1), is not supported. Please use SceneManager.LoadScene()/EditorSceneManager.OpenScene() to switch to another scene.

And the same happens for 48dfa9702ccb6f50b2dbff53870c9e4d

How can I debug that ?

graceful ocean
#

Exception thrown during SubScene import: System.ArgumentException: A component with type:Unity.Transforms.Parent has not been added to the entity. Entities Journaling may be able to help determine more information. Please enable Entities Journaling for a more helpful error message.

#

you have to figure out what you're doing here i guess?

#

are you manipulating parents or something

#

or destroying entities etc

limber elk
#

That my problem, my custom bakers do not raise that error & the two scenes ( 48xx & 60xx) are generated by unity.

#

So, how to know the baker problematic 🤔

#

I know it's linked to my new subscene referencing prefabs but I do not manipulate parent or transform at all, just copy weak references

sturdy pawn
#

without knowing more: make a new subscene, disable the one. slowly move each authoring object into the new subscene and let the subscene import. when it imports fine, move another object inside from the old subscene.