Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/RuntimeGen
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/RuntimeGen/PCGGenSourceManager.h |
| Include | #include "RuntimeGen/PCGGenSourceManager.h" |
Syntax
class FPCGGenSourceManager
Remarks
The runtime Generation Source Manager tracks generation sources in the world for use by the Runtime Generation Scheduler.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bDirty | ||
| UPCGGenSourceEditorCamera * | EditorCameraGenSource | Tracks the active/main editor viewport client. | |
| int32 | NumWorldPartitionStreamingSources | There may be more generation sources in 'WorldPartitionGenSources' than there are streaming sources in the world, so we only use the first N generation sources. | |
| TSet< IPCGGenSourceBase * > | RegisteredGenSources | Tracks registered generation sources, such as UPCGGenSourceComponent and UPCGGenSourcePlayer. | |
| const UWorld * | World | ||
| TArray< UPCGGenSourceWPStreamingSource * > | WorldPartitionGenSources | Pool of GenSources dedicated to WorldPartition StreamingSources. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FPCGGenSourceManager
(
const UWorld* InWorld |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| TSet< IPCGGenSourceBase * > | GetAllGenSources
(
const APCGWorldActor* InPCGWorldActor |
Creates the set of all generation sources tracked by the manager. | |
| void | OnGameModePostLogin
(
AGameModeBase* InGameMode, |
||
| void | OnGameModePostLogout
(
AGameModeBase* InGameMode, |
||
| bool | RegisterGenSource
(
IPCGGenSourceBase* InGenSource |
Adds a UPCGGenSource to be tracked by the GenSourceManager. | |
| void | Tick () |
Marks the GenSourceManager as dirty so that the next call to 'GetAllGenSources()' will update tracked generation sources. | |
| bool | UnregisterGenSource
(
const IPCGGenSourceBase* InGenSource |
Removes a UPCGGenSource from being tracked by the GenSourceManager. | |
| void | UpdatePerTickGenSources
(
const APCGWorldActor* InPCGWorldActor |
Updates tracked generation sources that should be refreshed per tick. |