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" |
template<typename T>
FPCGMetadataAttribute< T > &42; CreateAttribute
&40;
FName AttributeName,
const T & DefaultValue,
bool bAllowsInterpolation,
bool bOverrideParent
&41;
Remarks
Create a new attribute. If the attribute already exists, it will raise a warning (use FindOrCreateAttribute if this usecase can arise) If the attribute already exists but is of the wrong type, it will fail and return nullptr. Same if the name is invalid. Return a typed attribute pointer, of the requested type T.