Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/FPCGContext
Description
Gathers references to objects to prevent them from being garbage collected. Extend resources to be collected with AddExtractStructReferencedObjects. Implementation note: this is NOT the same as a struct using WithAddStructReferencedObjects since we are not holding contexts in properties in any case. This will be called from the graph executor when needed and is implemented to look like normal reference traversal.
| Name | AddStructReferencedObjects |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/PCGContext.h |
| Include Path | #include "PCGContext.h" |
| Source | /Engine/Plugins/PCG/Source/PCG/Private/PCGContext.cpp |
void AddStructReferencedObjects
(
FReferenceCollector & Collector
)