Some time ago, I wrote a tutorial about loading and unloading levels in UE5, where we also discussed why level streaming is important and the meaning of common terms used when such systems are implemented. In this tutorial, we will focus on how we can level stream, along with short descriptions of the terms we need to know to understand this system better.
Your advertisement can be placed here for $200 permanently. Suggested resolutions: 1800x663 or 1400x1400. Contact us.
To access the levels window, you can follow this path:
First click on the ‘Levels’ button.
To create a new sub-level, first click on the ‘Levels’ button, then click on the ‘Create New…’ button in the revealed menu.
When you have multiple levels and assets in your scene, you’ll notice that Unreal presents a new window at the bottom right of the viewport editor:
Through this menu, you can display which level you are currently in. When you click on an asset in the game world, it will also reveal the information about which level that asset is in.
To move your assets from one level to another, you can select the assets you want, cut (Ctrl + X), switch to the desired level, and then paste (Ctrl + V).
Activate the ‘Place Actors’ window (Window > Place Actors) to quickly search for any Unreal built-in actors. Look for ‘Level Streaming Volume’.
A few important things to know about this actor:
After we place our level streaming volumes, we can go back to our ‘Levels’ window.
Let’s say I moved the assets I wanted from my persistent level to ‘Cave_SubSystem_01’ and placed a ‘Level Streaming Volume’ in my persistent level.
Then I can open the ‘Levels’ menu, select the sub-level that I want to stream, and, from the following menu, under the ‘Streaming Volumes’ array, define that when the player collides with the placed ‘level streaming volume’ (which I named Level Stream Cave Area 01), it should be streamed. When the collision ends, it will be removed. Unreal takes care of everything else automatically. That’s all there is to it!
If you have any questions or find any part of this tutorial confusing, please leave a comment below. Additionally, if you enjoy these tutorials, you can support me on Patreon for just $10 a month so I can dedicate more time into these tutorials!