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

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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback