UEngine::PrepareMapChange

Prepares the engine for a map change by pre-loading level packages in the background.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/Engine.h

Include

#include "Engine/Engine.h"

Source

/Engine/Source/Runtime/Engine/Private/UnrealEngine.cpp

Syntax

bool PrepareMapChange
(
    FWorldContext & WorldContext,
    const TArray< FName > & LevelNames
)

Remarks

Prepares the engine for a map change by pre-loading level packages in the background.

Returns

true if all packages were in the package file cache and the operation succeeded, false otherwise. false as a return value also indicates that the code has given up.

Parameters

Parameter

Description

LevelNames

Array of levels to load in the background; the first level in this list is assumed to be the new "persistent" one.