Navigation
API > API/Plugins > API/Plugins/PCG
Const and Non-const API to interface with FPCGManagedResourceContainer
The helper is not tracking the execution source becoming invalid so avoid storing a copy. Instead store a weak ptr to the execution source which allows creating a helper on the stack when needed.
| Name | FPCGManagedResourceConstContainerHelper |
| Type | struct |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/PCGManagedResourceContainer.h |
| Include Path | #include "PCGManagedResourceContainer.h" |
Syntax
struct FPCGManagedResourceConstContainerHelper
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| PCGManagedResourceContainer.h | |||
FPCGManagedResourceConstContainerHelper
(
const IPCGGraphExecutionSource* InExecutionSource |
Const_cast here to store a single pointer for the const and non const versions of the helper. | PCGManagedResourceContainer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AreResourcesAccessible() |
PCGManagedResourceContainer.h | ||
void ForEachConstManagedResource
(
TFunctionRef< void(const UPCGManagedResource*)> InFunction |
PCGManagedResourceContainer.h | ||
const TArray< TObjectPtr< UPCGManagedResource > > & GetConstLoadedPreviewResourcesNoLock() |
PCGManagedResourceContainer.h | ||
const TArray< TObjectPtr< UPCGManagedResource > > & GetConstManagedResourcesNoLock() |
PCGManagedResourceContainer.h | ||
TArray< TObjectPtr< UPCGManagedResource > > GetManagedResourcesCopy() |
PCGManagedResourceContainer.h | ||
bool IsAnyObjectManagedByResource
(
const TArrayView< const UObject* > InObjects |
PCGManagedResourceContainer.h | ||
bool IsEmpty() |
PCGManagedResourceContainer.h | ||
bool IsValid() |
PCGManagedResourceContainer.h |