UWorld::SeamlessTravel

Seamlessly travels to the given URL by first loading the entry level in the background, switching to it, and then loading the specified level.

Windows
MacOS
Linux

Deprecated

  • UPackage::Guid has not been used by the engine for a long time. Please use SeamlessTravel without a NextMapGuid.

References

Module

Engine

Header

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

Include

#include "Engine/World.h"

Source

/Engine/Source/Runtime/Engine/Private/World.cpp

Syntax

void SeamlessTravel
(
    const FString & InURL,
    bool bAbsolute,
    FGuid MapPackageGuid
)

Remarks

Seamlessly travels to the given URL by first loading the entry level in the background, switching to it, and then loading the specified level. Does not disrupt network communication or disconnect clients. You may need to implement GameModeBase::GetSeamlessTravelActorList(), PlayerController::GetSeamlessTravelActorList(), GameModeBase::PostSeamlessTravel(), and/or GameModeBase::HandleSeamlessTravelPlayer() to handle preserving any information that should be maintained (player teams, etc) This codepath is designed for worlds that use little or no level streaming and GameModes where the game state is reset/reloaded when transitioning. (like UT)

seamlessly travels to the given URL by first loading the entry level in the background, switching to it, and then loading the specified level. Does not disrupt network communication or disconnect clients. You may need to implement GameMode::GetSeamlessTravelActorList(), PlayerController::GetSeamlessTravelActorList(), GameMode::PostSeamlessTravel(), and/or GameMode::HandleSeamlessTravelPlayer() to handle preserving any information that should be maintained (player teams, etc) This codepath is designed for worlds that use little or no level streaming and GameModes where the game state is reset/reloaded when transitioning. (like UT)

Parameters

Parameter

Description

URL

the URL to travel to; must be on the same server as the current URL

bAbsolute

(opt) - if true, URL is absolute, otherwise relative

MapPackageGuid

(opt) - the GUID of the map package to travel to - this is used to find the file when it has been auto-downloaded, so it is only needed for clients

URL

the URL to travel to; must be relative to the current URL (same server)

bAbsolute

(opt) - if true, URL is absolute, otherwise relative

MapPackageGuid

(opt) - the GUID of the map package to travel to - this is used to find the file when it has been autodownloaded, so it is only needed for clients

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