Navigation
API > API/Plugins > API/Plugins/PCG
Inheritance Hierarchy
- AActor
- APCGWorldActor
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/PCGWorldActor.h |
| Include | #include "PCGWorldActor.h" |
Syntax
UCLASS (MinimalAPI, NotBlueprintable, NotPlaceable)
class APCGWorldActor : public AActor
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bTreatEditorViewportAsGenerationSource | Allows any currently active editor viewport to act as a Runtime Generation Source. | |
| bool | bUse2DGrid | Disable creation of Partition Actors on the Z axis. | |
| TObjectPtr< UPCGLandscapeCache > | LandscapeCacheObject | Contains all the PCG data required to query the landscape complete. | |
| uint32 | PartitionGridSize | Size of the PCG partition actor grid for non-hierarchical-generation graphs. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
APCGWorldActor
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddSerializedPartitionActorRecord
(
const FPCGPartitionActorRecord& PartitionActorRecord |
Add a record for tracking loaded and unloaded partition actors. | |
| void | BeginCacheForCookedPlatformData
(
const ITargetPlatform* TargetPlatform |
||
| void | BeginDestroy () |
||
| void | BeginPlay () |
||
| bool | |||
| void | CreateGridGuidsIfNecessary
(
const PCGHiGenGrid::FSizeArray& InGridSizes, |
Creates guids for unused grid sizes. | |
| APCGWorldActor * | CreatePCGWorldActor
(
UWorld* InWorld |
||
| bool | DoesSerializedPartitionActorExist
(
const FGuid& GridGuid, |
Returns true if there is record of a partition actor living in a certain grid cell, regardless of whether or not it is loaded. | |
| void | EndPlay
(
const EEndPlayReason::Type EndPlayReason |
||
| void | GetSerializedGridGuids
(
PCGHiGenGrid::FSizeToGuidMap& OutSizeToGuidMap |
Returns the serialized grid GUIDs used for the partitioned actors, one per grid size. | |
| void | GetTransientGridGuids
(
PCGHiGenGrid::FSizeToGuidMap& OutSizeToGuidMap |
Returns the transient grid GUIDs used for the partitioned actors, one per grid size. | |
| bool | |||
| void | MergeFrom
(
APCGWorldActor* OtherWorldActor |
||
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
||
| void | |||
| void | PostLoad () |
||
| void | RemoveSerializedPartitionActorRecord
(
const FPCGPartitionActorRecord& PartitionActorRecord |
Remove a record for tracking loaded and unloaded partition actors. | |
| bool | ShouldExport () |
||
| bool | ShouldImport
(
FStringView ActorPropString, |
Constants
| Name | Description |
|---|---|
| DefaultPartitionGridSize |