Navigation
API > API/Plugins > API/Plugins/PCG
Description
Extract an attribute set in a array of structures. T MUST be a UStruct. Also, it must only contain supported types (so no arrays nor other structures)
| Name | PCGPropertyHelpers::ExtractAttributeSetAsArrayOfStructs |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Helpers/PCGPropertyHelpers.h |
| Include Path | #include "Helpers/PCGPropertyHelpers.h" |
namespace PCGPropertyHelpers
{
template<typename T>
TArray < T > PCGPropertyHelpers::ExtractAttributeSetAsArrayOfStructs
(
const UPCGParamData * InParamData,
const TMap < FName , TTuple < FName , bool > > * OptionalNameMapping,
FPCGContext * OptionalContext
)
}
Parameters
| Name | Remarks |
|---|---|
| InParamData | Attribute set that contains the data. |
| OptionalNameMapping | Optional mapping for the name in the structure and the name in the attribute set. Can also say if this property is required, or not and should be defaulted. By default all are defaulted if not found. |
| OptionalContext | Optional context if the extraction is done in a PCG Node, so errors are using the context to log. |