these are only my presumptions, please correct me where I’m wrong
when I load a additional scene to the hirarchy tree it seems to be an odenary tree branch but acts a little different:
this.entity.root… acsesses the actual scene, where as
this.app.root… calls all scenes are there really any differences? and if, is it enough to call destroy() to get rid of it?
is there a limit for additional scenes? It looks like after adding 4 or 6 scenes (in total)
no more scenes are loaded (what absolutly makes sence, why would somebody play so many levels at the same time?)
AFAIK, there is no limit to the number of scenes that can be loaded at once beyond typical performance issues (number of graph nodes in a scene etc). The hard restriction is that you can’t have two instances of the same scene loaded at the same time. If you need something like that, I recommend using Templates instead.
From what I can see, entity.root is the same as app.root.
Bear in mind that app.root is NOT the top most Entity you see in the Editor named Root. Root in the scene is a child of app.root.
SceneRegistry.remove removes it from the registry so you won’t be able to find it via SceneRegistry.find. To remove a ‘scene’ from the hierarchy, you should destroy the top most node of that scene.