Navigation
API > API/Plugins > API/Plugins/PCG
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/PCGActorAndComponentMapping.h |
| Include | #include "PCGActorAndComponentMapping.h" |
Syntax
class FPCGActorAndComponentMapping
Remarks
This class handle any necessary mapping between actors and pcg components. Its meant to be part of the PCG Subsystem and owned by it. We offload some logic to this class to avoid to clutter the subsystem. For now it is used for:
- Mapping between PCG Components and Partition actors: Dispatch tasks from original components to local components
- Tracking non partitioned PCG Components that has tracking actors needs.
- Tracking actors: Be able to react to actors changes, and potentially dirty/refresh affected components
Variables
| Type | Name | Description | |
|---|---|---|---|
| friend | FPCGRuntimeGenScheduler | ||
| friend | UPCGSubsystem |
Constructors
No constructors are accessible with public or protected access.
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Deinitialize () |
Deinitializes callbacks, etc, tied to the PCG subsystem | |
| TSet< UPCGComponent * > | Return a copy of all the registered components. Thread safe | ||
| TSet< UPCGComponent * > | Return a copy of all the registered non-partitioned components. Thread safe | ||
| TSet< UPCGComponent * > | Return a copy of all the registered partitioned components. Thread safe | ||
| UPCGComponent * | GetLocalComponent
(
uint32 GridSize, |
Retrieves a local component using grid size and grid coordinates, returns nullptr if no such component is found. | |
| APCGPartitionActor * | GetPartitionActor
(
uint32 GridSize, |
Retrieves a partition actor using grid size and grid coordinates, returns nullptr if no such partition actor is found. | |
| void | Initialize
(
UWorld* World |
Initializes callbacks, etc, tied to the PCG subsystem | |
| void | Notify that we exited the Landscape edit mode. | ||
| bool | RegisterOrUpdatePCGComponent
(
UPCGComponent* InComponent, |
Register a new PCG Component or update it. Returns true if it was added/updated. Thread safe | |
| void | RegisterPartitionActor
(
APCGPartitionActor* InActor, |
Register a new Partition actor, will be added to a map and will query all intersecting volume to bind to them if asked. | |
| bool | RemapPCGComponent
(
const UPCGComponent* OldComponent, |
In case of BP Actors, we need to remap the old component destroyed by the construction script to the new one. | |
| void | Tick () |
Should be called by the subsystem to handle delayed operations. | |
| void | UnregisterPartitionActor
(
APCGPartitionActor* InActor |
Unregister a Partition actor, will be removed from the map and remove itself to all intersecting volumes. | |
| void | UnregisterPCGComponent
(
UPCGComponent* InComponent, |
Unregister a PCG Component. Can force it, if we have a delayed unregister. Thread safe |
Typedefs
| Name | Description |
|---|---|
| FActorPreviousData | Typedef to store the previous position and previous tags of changed actors. |