# Additive Scene Loading

**URL:** <https://forum.playcanvas.com/t/additive-scene-loading/14400>\
**Category:** Help & Support\
**Created:** [August 17, 2020, 10:00am UTC](https://forum.playcanvas.com/t/additive-scene-loading/14400 "2020-08-17T10:00:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AliMoe](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/alimoe/32/6808_2.png) [@AliMoe](https://forum.playcanvas.com/u/AliMoe)\
**Post date:** [August 17, 2020, 10:00am UTC](https://forum.playcanvas.com/t/additive-scene-loading/14400/1 "2020-08-17T10:00:07Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Leonidas](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/leonidas/32/6495_2.png) [@Leonidas](https://forum.playcanvas.com/u/Leonidas)\
**Post date:** [August 17, 2020, 10:04am UTC](https://forum.playcanvas.com/t/additive-scene-loading/14400/2 "2020-08-17T10:04:58Z")

</div>

> [@AliMoe](#):
>
> 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?

Yes exactly, those settings aren’t for the entity hierarchy you load but for the scene (render, physics settings etc).

So if you don’t plan to overwrite the current scene settings, don’t call that function.

And you will have to make sure that all entities/level design can work with your base scene settings.

---

<div class="post-metadata">

**Author:** ![AliMoe](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/alimoe/32/6808_2.png) [@AliMoe](https://forum.playcanvas.com/u/AliMoe)\
**Post date:** [August 19, 2020, 9:17am UTC](https://forum.playcanvas.com/t/additive-scene-loading/14400/3 "2020-08-19T09:17:16Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Leonidas](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/leonidas/32/6495_2.png) [@Leonidas](https://forum.playcanvas.com/u/Leonidas)\
**Post date:** [August 19, 2020, 9:50am UTC](https://forum.playcanvas.com/t/additive-scene-loading/14400/4 "2020-08-19T09:50:21Z")

</div>

Hi @AliMoe,

I’ve done something similar in the past and the way to go with it is override **loadSceneHierarchy()** method and create your own.

That method will load and append the new hierarchy and also call the initialize/postInitialize method on all new scripts. So you need to code a similar method, excluding that part.

> <https://github.com/playcanvas/engine/blob/a85aeed65d2bddef1646929105caba84d1a8f912/src/framework/scene-registry.js#L180>
