Can someone explain how levels work in Unreal Engine? I’ve looked at countless docs and tutorials and not a single one of them explains how to load a level. Sure, they explain sub levels. They explain how to replace a level. But not how to just load a new level and not unload common assets.
I want to do something EXTREMELY simple. I want common code for my UI and some other assets and I want to be able to swap levels. That’s it. But it’s apparently 100% IMPOSSIBLE to do in Unreal Engine. The lack of support here is unbelievable.
If I load a new level, my common level that sets up my UI is gone. And never mind that there’s no way to do this asynchronously. Ok, so I try streaming levels (ie. sublevels). Well, each of my levels is on a different planet with vastly different lighting. The editor complains I have multiple sky lights and conflicting directional lights. Just because I have multiple sub levels with different lighting.
Ok, I look up lighting scenarios. I put the lighting in those. No dice. Editor still complains.
Why is this so difficult? I just want to be able to switch to different levels without losing a common set of actors and code for my UI and gameplay.
How do I switch levels without having common assets disappear on me?
You know what the funniest part is? You run code in a BP to load another level. But you can’t call or do anything else because the current BP is gone. Like WTF?