Navigation
API > API/Plugins > API/Plugins/PCG
Description
Extract an attribute set in a array of structures. Also, it must only contain supported types (so no arrays nor other structures)
| Name | PCGPropertyHelpers::ExtractAttributeSetToContainers |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Helpers/PCGPropertyHelpers.h |
| Include Path | #include "Helpers/PCGPropertyHelpers.h" |
| Source | /Engine/Plugins/PCG/Source/PCG/Private/Helpers/PCGPropertyHelpers.cpp |
namespace PCGPropertyHelpers
{
bool PCGPropertyHelpers::ExtractAttributeSetToContainers
(
const UPCGParamData * InParamData,
const UStruct * InStruct,
TArrayView < void * > InContainers,
const TMap < FName , TTuple < FName , bool > > * OptionalNameMapping,
FPCGContext * OptionalContext
)
}
Parameters
| Name | Remarks |
|---|---|
| InParamData | Attribute set that contains the data. |
| InStruct | Structure to extract the param to. |
| InContainers | Containers of the given structs. The number MUST match the number of entries in the ParamData. |
| 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. |