I’m trying to properly load multiple scenes, which already works. I’m calling this.app.scenes.loadSceneHierarchy(someUrl) to load all the entities. So far so good
Now when I look at the example given by you guys, before you call this.app.scenes.loadSceneHierarchy you call this.app.scenes.loadSceneSettings when changing scenes. I just want to make sure that my assumption is correct, that these setting are not only applied to the newly loaded entites, but instad are applied to the whole scene? They would overwrite the previous settings, of my base scene? So if I want to load additional scenes, I should not load these setting, but only the hierarchy, right?
Ofc this means, that the additional scene needs to work with the settings from the base scene, but is this assumption right? Or do I still need to load these settings?
As an extension to this question, I’m encountering some timing restrictions. If I load multiple scenes, they are all initialized immediately when their scene hierarchy is loaded. Therefore the order looks like this:
Main scene entities initialize()
Main scene entities postInitialize()
Additional scene 1 entities initialize()
Additional scene 1 entities postInitialize()
Additional scene 2 entities initialize()
Additional scene 2 entities postInitialize()
I’m currently working around this by firing events and relying on those instead of the initialize -> postInitialize order. But this is not very intuitive, so I was wondering if there is a way to delay the initialization process, until all scenes have been loaded?