Streaming Levels and Loading

Hi,

I just wanted to ask, I have a streaming level setup and can load streaming levels just fine, however inside some levels I have sub levels which are always loaded in that streaming level ( like a building for example).

The way I have it at the moment, is I spawn the player in once the streaming level is loaded, however is there a way to tell when a sub level within that streaming level is loaded? Sometimes I spawn the player in and the sub level spawn in a second or more later. I use a delay at the moment to give the loading more time, however, I would rather know when all sub levels have loaded so I can then spawn my player in after that.

Thanks.

to know if level is loaded:

to know if level is visible:

image

you can hide/unhide levels and keep loaded:

also you can load and unload vith this method:

image

1 Like

Thanks for your response, but i’ve made an error in my question. The sublevels are not streaming levels, but rather level instances, therefore using the methods you mentioned don’t work. I should have explained that better. Sorry.

Don’t suppose you have any other tips? What you did mention I will find some uses for though so thanks.

check this example:

pressing 1, 2 or 3 keys it toggles sub levels visibility AND checks its visibility state.

also levels have built in bindings to trigger events like this:

Unfortunately this doesn’t work in my case, as I don’t load the sub levels. I load the streaming level (main level) but I have level instances within that streaming level which are always loaded. They are basically little levels I have just dragged into the main streaming level which then get converted to a level instance. They are always loaded as part of that streaming level and require no manual loading. Hope that makes sense.

I didn’t know about the Event dispatchers though which is pretty neat.