engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FWorldContext结构体 参考

FWorldContext A context for dealing with UWorlds at the engine level. 更多...

#include <Engine.h>

Public 成员函数

void AddRef (UWorld *&WorldPtr)
 Adds an external reference
 
void AddReferencedObjects (FReferenceCollector &Collector, const UObject *ReferencingObject)
 Collect FWorldContext references for garbage collection
 
void RemoveRef (UWorld *&WorldPtr)
 Removes an external reference
 
ENGINE_API void SetCurrentWorld (UWorld *World)
 Set CurrentWorld and update external reference pointers to reflect this
 

Public 属性

TArray< FNamedNetDriver > ActiveNetDrivers
 A list of active net drivers
 
uint32 AudioDeviceID
 Handle to this world context's audio device.
 
uint32 bShouldCommitPendingMapChange:1
 If true, commit map change the next frame. 更多...
 
bool bWaitingOnOnlineSubsystem
 Is this world context waiting for an online login to complete (for PIE)
 
FString CustomDescription
 Custom description to be display in blueprint debugger UI
 
TArray< UWorld ** > ExternalReferences
 Outside pointers to CurrentWorld that should be kept in sync if current world changes

 
struct FURL LastRemoteURL
 last server we connected to (for "reconnect" command)
 
struct FURL LastURL
 URL the last time we traveled
 
TArray< FName > LevelsToLoadForPendingMapChange
 Array of package/ level names that need to be loaded for the pending map change. 更多...
 
TArray< class ULevel * > LoadedLevelsForPendingMapChange
 Array of already loaded levels. 更多...
 
TArray< class UObjectReferencer * > ObjectReferencers
 Handles to object references; used by the engine to e.g. 更多...
 
TArray< struct FFullyLoadedPackagesInfo > PackagesToFullyLoad
 A list of tag/array pairs that is used at LoadMap time to fully load packages that may be needed for the map/game with DLC, but we can't use DynamicLoadObject to load from the packages
 
FString PendingMapChangeFailureDescription
 Human readable error string for any failure during a map change request. 更多...
 
int32 PIEInstance
 The PIE instance of this world, -1 is default
 
FString PIEPrefix
 The Prefix in front of PIE level names, empty is default
 
ERHIFeatureLevel::Type PIEWorldFeatureLevel
 The feature level that PIE world should use
 
bool RunAsDedicated
 Is this running as a dedicated server
 
uint8 TravelType
 TravelType for pending client connects
 
FString TravelURL
 URL to travel to for pending client connect
 

详细描述

FWorldContext A context for dealing with UWorlds at the engine level.

As the engine brings up and destroys world, we need a way to keep straight what world belongs to what.

WorldContexts can be thought of as a track. By default we have 1 track that we load and unload levels on. Adding a second context is adding a second track; another track of progression for worlds to live on.

For the GameEngine, there will be one WorldContext until we decide to support multiple simultaneous worlds. For the EditorEngine, there may be one WorldContext for the EditorWorld and one for the PIE World.

FWorldContext provides both a way to manage 'the current PIE UWorld*' as well as state that goes along with connecting/travelling to new worlds.

FWorldContext should remain internal to the UEngine classes. Outside code should not keep pointers or try to manage FWorldContexts directly. Outside code can still deal with UWorld*, and pass UWorld*s into Engine level functions. The Engine code can look up the relevant context for a given UWorld*.

For convenience, FWorldContext can maintain outside pointers to UWorld*s. For example, PIE can tie UWorld* UEditorEngine::PlayWorld to the PIE world context. If the PIE UWorld changes, the UEditorEngine::PlayWorld pointer will be automatically updated. This is done with AddRef() and SetCurrentWorld().

类成员变量说明

◆ bShouldCommitPendingMapChange

uint32 FWorldContext::bShouldCommitPendingMapChange

If true, commit map change the next frame.


◆ LevelsToLoadForPendingMapChange

TArray<FName> FWorldContext::LevelsToLoadForPendingMapChange

Array of package/ level names that need to be loaded for the pending map change.

First level in that array is going to be made a fake persistent one by using ULevelStreamingPersistent.

◆ LoadedLevelsForPendingMapChange

TArray<class ULevel*> FWorldContext::LoadedLevelsForPendingMapChange

Array of already loaded levels.

The ordering is arbitrary and depends on what is already loaded and such.

◆ ObjectReferencers

TArray<class UObjectReferencer*> FWorldContext::ObjectReferencers

Handles to object references; used by the engine to e.g.

the prevent objects from being garbage collected.

◆ PendingMapChangeFailureDescription

FString FWorldContext::PendingMapChangeFailureDescription

Human readable error string for any failure during a map change request.

Empty if there were no failures.


该结构体的文档由以下文件生成: