engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FSeamlessTravelHandler类 参考

class that encapsulates seamless world traveling 更多...

#include <World.h>

Public 成员函数

void CancelTravel ()
 cancels transition in progress
 
FString GetDestinationMapName () const
 
const UWorld * GetLoadedWorld () const
 
FORCEINLINE bool HasSwitchedToDefaultMap () const
 
FORCEINLINE bool IsInTransition () const
 
void SetPauseAtMidpoint (bool bNowPaused)
 turns on/off pausing after loading the transition map only valid during travel, before we've started loading the final destination 更多...
 
bool StartTravel (UWorld *InCurrentWorld, const FURL &InURL, const FGuid &InGuid)
 starts traveling to the given URL. 更多...
 
ENGINE_API UWorld * Tick ()
 Ticks the transition; handles performing the world switch once the required packages have been loaded 更多...
 

详细描述

class that encapsulates seamless world traveling

成员函数说明

◆ GetDestinationMapName()

FString FSeamlessTravelHandler::GetDestinationMapName ( ) const
inline
返回
the destination map that is being travelled to via seamless travel

◆ GetLoadedWorld()

const UWorld * FSeamlessTravelHandler::GetLoadedWorld ( ) const
inline
返回
the destination world that has been loaded asynchronously by the seamless travel handler.

◆ HasSwitchedToDefaultMap()

FORCEINLINE bool FSeamlessTravelHandler::HasSwitchedToDefaultMap ( ) const
inline
返回
if current transition has switched to the default map; returns false if no transition is in progress

◆ IsInTransition()

FORCEINLINE bool FSeamlessTravelHandler::IsInTransition ( ) const
inline
返回
whether a transition is already in progress

◆ SetPauseAtMidpoint()

void FSeamlessTravelHandler::SetPauseAtMidpoint ( bool  bNowPaused)

turns on/off pausing after loading the transition map only valid during travel, before we've started loading the final destination

参数
bNowPaused- whether the transition should now be paused

◆ StartTravel()

bool FSeamlessTravelHandler::StartTravel ( UWorld *  InCurrentWorld,
const FURL &  InURL,
const FGuid &  InGuid 
)

starts traveling to the given URL.

The required packages will be loaded async and Tick() will perform the transition once we are ready

参数
InURLthe URL to travel to
InGuidthe GUID of the destination map package
返回
whether or not we succeeded in starting the travel

◆ Tick()

ENGINE_API UWorld * FSeamlessTravelHandler::Tick ( )

Ticks the transition; handles performing the world switch once the required packages have been loaded

返回
The new primary world if the world has changed, null if it has not

该类的文档由以下文件生成: