Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine > UWorld
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 |
void SeamlessTravel
&40;
const FString & InURL,
bool bAbsolute
&41;
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
Name | 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 |
URL | the URL to travel to; must be relative to the current URL (same server) |
bAbsolute | (opt) - if true, URL is absolute, otherwise relative |