As levels get more and more complex, they can sometimes get quite unwieldy. One of the tools that we have as designers is the ability to break our levels apart and load them in at runtime. This is also incredibly useful for working in teams, where one person can work on one part of the game and bring it all together later.
We will look at the easiest way to load in a level instantly, which is to have the level always being loaded.
This recipe assumes you have two levels you'd like to have loaded at the same time. I will be using the levels created in the Placing trees and rocks using the Foliage tool recipe in this chapter and the Meshing an example map recipe from Chapter 3, Creating Quality Interior Environments.
Let's first export one of these rooms so that we can give them to our artist to work with:
If this is not the case, go to the Levels window and right-click on one of the levels and select Select Actors. Then, move the level to fit where you want it to be placed. Of course, this assumes that you have some flat terrain somewhere. If not, use the Flatten tool on the Foliage tab to flatten the area to make it easier for people to see.
Now, we can see our levels loaded together!
For those interested in having levels load dynamically over time rather than all at once, you can use blueprints to have levels stream in and out to create what seems like a seamless world. To see how to do this, refer to https://wiki.unrealengine.com/Blueprint_Manual_Level_Streaming.
18.188.96.5