Load Level Instance (by Name)

Load Level Instance (by Name)

Windows
MacOS
Linux

Stream in a level with a specific location and rotation. You can create multiple instances of the same level!

The level to be loaded does not have to be in the persistent map's Levels list, however to ensure that the .umap does get packaged, please be sure to include the .umap in your Packaging Settings:

Project Settings -> Packaging -> List of Maps to Include in a Packaged Build (you may have to show advanced or type in filter)

Target is Level Streaming Dynamic

Load Level Instance (by Name)
Level Name
Location
X0
Y 0
Z 0
Rotation
R 0
P 0
Y0
Out Success
Return Value
Select Asset

Inputs

In
Exec
Level Name
String

Level package name, ex: /Game/Maps/MyMapName, specifying short name like MyMapName will force very slow search on disk

Location
Vector

World space location where the level should be spawned

Rotation
Rotator

World space rotation for rotating the entire level

Outputs

Out
Exec
Out Success
Boolean

Whether operation was successful (map was found and added to the sub-levels list)

Return Value
Level Streaming Dynamic Object Reference

Streaming level object for a level instance

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss