UEngine::PrepareMapChange

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

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.

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