Navigation
API > API/Plugins > API/Plugins/PCG
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/PCGActorAndComponentMapping.h |
| Include | #include "PCGActorAndComponentMapping.h" |
Syntax
class UPCGActorAndComponentMapping
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 | UPCGSubsystem |
Constructors
No constructors are accessible with public or protected access.
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| 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 | ||
| bool | RegisterOrUpdatePCGComponent
(
UPCGComponent* InComponent, |
Register a new PCG Component or update it. Returns true if it was added/updated. Thread safe | |
| void | RegisterOrUpdateTracking
(
UPCGComponent* InComponent, |
Will register/update tracking if a component was registered/updated. | |
| 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. | |
| void | |||
| 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 | If the partition grid size change, call this to empty the Partition actors map | ||
| void | |||
| 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 |