Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Metadata > API/Plugins/PCG/Metadata/UPCGMetadata
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/Metadata/PCGMetadata.h |
| Include | #include "Metadata/PCGMetadata.h" |
| Source | /Engine/Plugins/Experimental/PCG/Source/PCG/Private/Metadata/PCGMetadata.cpp |
bool SetAttributeFromProperty
&40;
FName AttributeName,
PCGMetadataEntryKey & EntryKey,
const UObject &42; Object,
const FProperty &42; Property,
bool bCreate
&41;
Remarks
Set an attribute given a property and its value. true if the attribute creation (if required) and the value set succeeded
Parameters
| Name | Description |
|---|---|
| AttributeName | Target attribute to set the property's value to |
| EntryKey | Metadata entry key to set the value to |
| Object | Object to get the property value from |
| Property | The property to set from |
| bCreate | If true and the attribute doesn't exists, it will create an attribute based on the property type |