Level loading clarification

I wanted to get some clarification on level loading and unloading. I have two levels right next to one another - one on the right and one one the left. I have one streaming level to load and one to unload. The first box the player enters is an unload box to load the second level and second box is to load the second level. My question is that the level is already unloaded when the player hits the first box and when they are walking back the second level is already loaded. Does this lead to issues with unreal creating a duplicate load or unloading something that is already unloaded. What I really want is loading and unloading based on the way the player is moving.

1 Like

If you’re using level streaming, and have added both your sublevels to the persistent main level, then I don’t think it’s possible to load ( or unload ) them more than once.

The first level is a persistent level and the second is not. When the player moves towards the second level there is a collision box to load the second level. The unloading of the second level is done with another collision box in front of the loading box - that is for when the player is moving back from the second level to the persistent level. So the player moves into the load second level box when the level is already loaded and collides with the unload box when the level is already unloaded. Would this lead to issues with duplicate loading and unloading.

1 Like

How streaming works, is you have a main ( sometimes empty ) persistent level, and the other levels are added as sublevels of that.

It sounds like one of your levels is the persistent, and the other is a sublevel. That’s ok also.