Navigation
API > API/Plugins > API/Plugins/PCG
Simple helper class to factorize the logic for gathering dynamic tracking keys and pushing them to the component. Only work for settings that override CanDynamicalyTrackKeys.
| Name | FPCGDynamicTrackingHelper |
| Type | struct |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Helpers/PCGDynamicTrackingHelpers.h |
| Include Path | #include "Helpers/PCGDynamicTrackingHelpers.h" |
Syntax
struct FPCGDynamicTrackingHelper
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bDynamicallyTracked | bool | Helpers/PCGDynamicTrackingHelpers.h | ||
| CachedExecutionSource | TWeakInterfacePtr< IPCGGraphExecutionSource > | Helpers/PCGDynamicTrackingHelpers.h | ||
| DynamicallyTrackedKeysAndCulling | TArray< TPair< FPCGSelectionKey, bool >, TInlineAllocator< 16 > > | Helpers/PCGDynamicTrackingHelpers.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddToTracking
(
FPCGSelectionKey&& InKey, |
Add the key to the tracking, will be uniquely added to the array. | Helpers/PCGDynamicTrackingHelpers.h | |
void EnableAndInitialize
(
const FPCGContext* InContext, |
Enable dynamic tracking, will cache the weak ptr of the component and optionally resize the array for keys. | Helpers/PCGDynamicTrackingHelpers.h | |
void Finalize
(
const FPCGContext* InContext |
Push all the tracked keys to the ceched component if still valid and the same as the context. | Helpers/PCGDynamicTrackingHelpers.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void AddSingleDynamicTrackingKey
(
FPCGContext* InContext, |
Convenience function to push just a single selector as a tracking key to the component. | Helpers/PCGDynamicTrackingHelpers.h | |
static void AddSingleDynamicTrackingKey
(
FPCGContext* InContext, |
Convenient function to push just a single tracking key to the component. | Helpers/PCGDynamicTrackingHelpers.h |