Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/UPCGMetadata
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPCGMetadataAttribute< T > * CreateAttribute
(
FPCGAttributeIdentifier AttributeName, |
Create a new attribute. | Metadata/PCGMetadata.h | |
FPCGMetadataAttributeBase * CreateAttribute
(
FPCGAttributeIdentifier AttributeName, |
Create a new attribute, that will be generic and not typed. | Metadata/PCGMetadata.h | |
FPCGMetadataAttributeBase * CreateAttribute
(
FPCGAttributeIdentifier AttributeName, |
Create a new attribute, that will be either generic or typed, depending the type given by the desc. | Metadata/PCGMetadata.h |
CreateAttribute(FPCGAttributeIdentifier, const T &, bool, bool)
Description
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.
| Name | CreateAttribute |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/PCGMetadata.h |
| Include Path | #include "Metadata/PCGMetadata.h" |
template<typename T>
FPCGMetadataAttribute < T > * CreateAttribute
(
FPCGAttributeIdentifier AttributeName,
const T & DefaultValue,
bool bAllowsInterpolation,
bool bOverrideParent
)
CreateAttribute(FPCGAttributeIdentifier, const T &, bool, bool)
Description
Create a new attribute, that will be generic and not typed. This should never be static cast to a FPCGMetadataAttribute
| Name | CreateAttribute |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/PCGMetadata.h |
| Include Path | #include "Metadata/PCGMetadata.h" |
template<typename T>
FPCGMetadataAttributeBase * CreateAttribute
(
FPCGAttributeIdentifier AttributeName,
const T & DefaultValue,
bool bAllowsInterpolation,
bool bOverrideParent
)
CreateAttribute(FPCGAttributeIdentifier, const FPCGMetadataAttributeDesc &, bool, bool)
Description
Create a new attribute, that will be either generic or typed, depending the type given by the desc. The default value will not be set. 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.
| Name | CreateAttribute |
| Type | function |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/PCGMetadata.h |
| Include Path | #include "Metadata/PCGMetadata.h" |
| Source | /Engine/Plugins/PCG/Source/PCG/Private/Metadata/PCGMetadata.cpp |
FPCGMetadataAttributeBase * CreateAttribute
(
FPCGAttributeIdentifier AttributeName,
const FPCGMetadataAttributeDesc & AttributeDesc,
bool bAllowsInterpolation,
bool bOverrideParent
)