Navigation
API > API/Plugins > API/Plugins/PCG
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- AActor
- APCGWorldActor
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/PCGWorldActor.h |
| Include | #include "PCGWorldActor.h" |
Syntax
UCLASS&40;MinimalAPI, NotBlueprintable, NotPlaceable&41;
class APCGWorldActor : public AActor
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bUse2DGrid | Disable creation of Partition Actors on the Z axis. | |
| TSet< TWeakObjectPtr< AActor > > | CachedTrackedActors | Cached tracked actors list is serialized because we can't get it at postload time. | |
| 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 | CreateGridGuidsIfNecessary
(
const PCGHiGenGrid::FSizeArray& InGridSizes |
Returns the grid GUIDs used for the partitioned actors, one per grid size. | |
| APCGWorldActor * | CreatePCGWorldActor
(
UWorld* InWorld |
||
| void | GetGridGuids
(
PCGHiGenGrid::FSizeToGuidMap& OutSizeToGuidMap |
Overridden from AActor
| Type | Name | Description | |
|---|---|---|---|
| void | BeginPlay () |
Overridable native event for when play begins for this actor. | |
| bool | Returns true if this actor allows changing the spatially loaded flag. | ||
| void | EndPlay
(
const EEndPlayReason::Type EndPlayReason |
Overridable function called whenever this actor is being removed from a level | |
| bool | Used to know if actor supports some editor operations. (Delete, Replace) | ||
| bool | ShouldExport () |
Called before editor copy, true allow export | |
| bool | ShouldImport
(
FStringView ActorPropString, |
Called before editor paste, true allow import |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginCacheForCookedPlatformData
(
const ITargetPlatform* TargetPlatform |
Starts caching of platform specific data for the target platform Called when cooking before serialization so that object can prepare platform specific data Not called during normal loading of objects | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. | ||
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. |
Constants
| Name | Description |
|---|---|
| DefaultPartitionGridSize |