Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/UPCGMetadata
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPCGMetadataAttribute< T > * FindOrCreateAttribute
(
FPCGAttributeIdentifier AttributeName, |
Find or create an attribute. | Metadata/PCGMetadata.h | |
FPCGMetadataAttributeBase * FindOrCreateAttribute
(
FPCGAttributeIdentifier AttributeName, |
Find or create an attribute. | Metadata/PCGMetadata.h |
FindOrCreateAttribute(FPCGAttributeIdentifier, const T &, bool, bool, bool)
Description
Find or create an attribute. Follows CreateAttribute signature. Extra boolean bOverwriteIfTypeMismatch allows to overwrite an existing attribute if the type mismatch. Same as CreateAttribute, it will return nullptr if the attribute name is invalid. Return a typed attribute pointer, of the requested type T.
| Name | FindOrCreateAttribute |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/PCGMetadata.h |
| Include Path | #include "Metadata/PCGMetadata.h" |
template<typename T>
FPCGMetadataAttribute < T > * FindOrCreateAttribute
(
FPCGAttributeIdentifier AttributeName,
const T & DefaultValue,
bool bAllowsInterpolation,
bool bOverrideParent,
bool bOverwriteIfTypeMismatch
)
FindOrCreateAttribute(FPCGAttributeIdentifier, const T &, bool, bool, bool)
Description
Find or create an attribute. Follows CreateAttribute signature. Extra boolean bOverwriteIfTypeMismatch allows to overwrite an existing attribute if the type mismatch. Same as CreateAttribute, it will return nullptr if the attribute name is invalid. Return a generic attribute pointer
| Name | FindOrCreateAttribute |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/PCGMetadata.h |
| Include Path | #include "Metadata/PCGMetadata.h" |
template<typename T>
FPCGMetadataAttributeBase * FindOrCreateAttribute
(
FPCGAttributeIdentifier AttributeName,
const T & DefaultValue,
bool bAllowsInterpolation,
bool bOverrideParent,
bool bOverwriteIfTypeMismatch
)