Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/UPCGMetadataAccessorHelpers
Description
Get an arbitrary value from an attribute on a given point. The value needs to be the same type of the attribute or able to convert from it.
| Name | GetAttributeValue |
| 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 GetAttributeValue
(
const UPCGMetadata * Metadata,
const FPCGPoint & Point,
FName AttributeName,
int32 & Value
)
true if the get succeeded, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| Point | Const ref of the point to get the attribute from. |
| Metadata | Pointer to a const metadata |
| AttributeName | Name of the attribute to get the value from |
| Value | Wildcard pin to retrieve the read value. |