AGameMode::PreCommitMapChange

Called from CommitMapChange before unloading previous level. Used for asynchronous level streaming

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/GameMode.h

Include

#include "GameFramework/GameMode.h"

Source

/Engine/Source/Runtime/Engine/Private/GameMode.cpp

Syntax

virtual void PreCommitMapChange
(
    const FString & PreviousMapName,
    const FString & NextMapName
)

Remarks

Called from CommitMapChange before unloading previous level. Used for asynchronous level streaming

Parameters

Parameter

Description

PreviousMapName

Name of the previous persistent level

NextMapName

Name of the persistent level being streamed to