Navigation
API > API/Plugins > API/Plugins/PCG
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UPCGManagedResource
- UPCGManagedActors
- UPCGManagedComponent
- UPCGManagedISMComponent
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/PCGManagedResource.h |
| Include | #include "PCGManagedResource.h" |
Syntax
UCLASS&40;BlueprintType&41;
class UPCGManagedResource : public UObject
Remarks
This class is used to hold resources and their mechanism to delete them on demand. In order to allow for some reuse (e.g. components), the Release call supports a "soft" release by marking them unused in order to be potentially re-used down the line. At the end of the generate, a call to ReleaseIfUnused will serve to finally cleanup what is not needed anymore.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsMarkedUnused | ||
| FPCGCrc | Crc |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | |||
| const FPCGCrc & | GetCrc () |
||
| bool | |||
| void | MarkAsReused () |
Ensure may fire if multiple executions of the graph are happening in parallel/overlapping. | |
| void | MarkAsUsed () |
||
| bool | MoveResourceToNewActor
(
AActor* NewActor |
Move the given resource to a new actor. Return true if it has succeeded | |
| bool | MoveResourceToNewActor
(
AActor* NewActor, |
||
| void | Called when after a PCG component is applied to (such as after a RerunConstructionScript) | ||
| bool | Release
(
bool bHardRelease, |
Releases/Mark Unsued the resource depending on the bHardRelease flag. | |
| bool | ReleaseIfUnused
(
TSet< TSoftObjectPtr< AActor >>& OutActorsToDelete |
Releases resource if empty or unused. | |
| void |