Navigation
API > API/Plugins > API/Plugins/PCG
Description
Utility function to create the accessor and keys and extract all the values for all the keys. Also, automatically resolve the selector for @Last.
| Name | PCGAttributeAccessorHelpers::ExtractAllValues |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/Accessors/PCGAttributeAccessorHelpers.h |
| Include Path | #include "Metadata/Accessors/PCGAttributeAccessorHelpers.h" |
namespace PCGAttributeAccessorHelpers
{
template<typename T, typename AllocatorType>
bool PCGAttributeAccessorHelpers::ExtractAllValues
(
const UPCGData * InData,
const FPCGAttributePropertyInputSelector & InSelector,
TArray < T, AllocatorType > & OutArray,
FPCGContext * Context,
EPCGAttributeAccessorFlags GetFlags,
bool bQuiet
)
}
true if it succeeded.
Parameters
| Name | Remarks |
|---|---|
| InData | Input data to extract the value from. Will also be used to resolve @Last on the selector. |
| InSelector | Selector to know which value to extract. Will be resolved if it is @Last. |
| OutArray | Output array where the values will be written. |
| Context | Optional context for logging. Can be null. |
| GetFlags | Flags for the get accessor. By default, is broadcast and constructible. |