Skip to main content
Getting Started

Open Level Async

Open Level loads the map on the game thread, so the game stands still while it loads. Your widget stops animating, and the progress can't move. Open Level Async loads the map package in the background first, while the loading screen is shown and keeps animating. When the package has loaded, the map is opened.

Using it​

Call Open Level Async from any Blueprint with a world context, with the map and the options you would give Open Level, for example listen.

  • The loading screen is shown as soon as the call is made, with the Map Override of the new map.
  • With Automatic Progress on, the map part of the progress follows the real loading of the package.
  • Is Opening Level Async on the Loading Screen Manager is true while the package loads.
  • The map is then opened with Open Level. That last step is short, since the package is already in memory.
ULoadingScreenManager::K2_OpenLevelAsync(this, TSoftObjectPtr<UWorld>(FSoftObjectPath(TEXT("/Game/Maps/MyMap.MyMap"))), TEXT(""));

Blueprint example​

In an Actor Blueprint, create a function named Travel to Example Map. The function gets the Loading Screen Manager and checks Is Opening Level Async. If a load is already running, the function returns. Otherwise it calls Open Level Async on the same manager.

Select one of your own maps on the Level pin (the example project uses /Game/Maps/Test_2). To try it, place the actor in your level and call Travel to Example Map on that instance from a button or trigger. Use a standalone or packaged game to see background loading.

Good to know​

  • A second call while a map is loading is ignored, and a warning is logged.
  • If the package can't be loaded, the call is cancelled with a warning and the current map stays.
  • In the editor, Open Level Async works like a normal Open Level.
  • On a blocked map the map is still loaded in the background, but the loading screen is not shown.
  • It opens a map locally. To move all players on a server, use server travel as before.