Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/UPCGMetadataAccessorHelpers
Description
Get an arbitrary value from an attribute, using a given metadata entry key. The value needs to be the same type of the attribute or able to convert from it.
| Name | GetAttributeValueByMetadataKey |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/PCGMetadataAccessor.h |
| Include Path | #include "Metadata/PCGMetadataAccessor.h" |
UFUNCTION (BlueprintCallable, CustomThunk, Category="PCG|Metadata",
Meta=(ScriptMethod, CustomStructureParam="Value", AllowAbstract="false"))
static bool GetAttributeValueByMetadataKey
(
const UPCGMetadata * Metadata,
int64 Key,
FName AttributeName,
int32 & Value
)
true if the get succeeded, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| Key | Metadata entry key to get. |
| Metadata | Pointer to a const metadata |
| AttributeName | Name of the attribute to get the value from |
| Value | Wildcard pin to retrieve the read value. |