Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/Metadata
Inheritance Hierarchy
- FPCGMetadataAttributeBase
- FPCGMetadataAttribute
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/Metadata/PCGMetadataAttribute.h |
| Include | #include "Metadata/PCGMetadataAttribute.h" |
Syntax
class FPCGMetadataAttributeBase
Variables
| Type | Name | Description | |
|---|---|---|---|
| PCGMetadataAttributeKey | AttributeId | ||
| bool | bAllowsInterpolation | ||
| FRWLock | EntryMapLock | ||
| TMap< PCGMetadataEntryKey, PCGMetadataValueKey > | EntryToValueKeyMap | ||
| TObjectPtr< UPCGMetadata > | Metadata | ||
| FName | Name | ||
| const FPCGMetadataAttributeBase * | Parent | ||
| int16 | TypeId |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FPCGMetadataAttributeBase
(
UPCGMetadata* InMetadata, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AccumulateValue
(
PCGMetadataEntryKey ItemKey, |
||
| bool | |||
| bool | AreValuesEqual
(
PCGMetadataValueKey ValueKey1, |
||
| bool | AreValuesEqualForEntryKeys
(
PCGMetadataEntryKey EntryKey1, |
||
| void | ClearEntries () |
||
| FPCGMetadataAttributeBase * | Copy
(
FName NewName, |
||
| FPCGMetadataAttributeBase * | CopyToAnotherType
(
int16 Type |
||
| void | Flatten () |
Unparents current attribute by flattening the values, entries, etc. | |
| void | FlattenAndCompress
(
const TArray< PCGMetadataEntryKey >& InEntryKeysToKeep |
Unparents current attribute by flattening the values, entries, etc while only keeping the entries referenced in InEntryKeysToKeep. | |
| const TMap< PCGMetadataEntryKey, PCGMetadataValueKey > & | This call is not thread safe. | ||
| const UPCGMetadata * | GetMetadata () |
||
| int32 | |||
| int32 | |||
| const FPCGMetadataAttributeBase * | GetParent () |
||
| int16 | GetTypeId () |
||
| PCGMetadataValueKey | GetValueKey
(
PCGMetadataEntryKey EntryKey |
||
| PCGMetadataValueKey | |||
| void | GetValueKeys
(
const TArrayView< const PCGMetadataEntryKey >& EntryKeys, |
Bulk getter, to lock in read only once per parent. | |
| bool | HasNonDefaultValue
(
PCGMetadataEntryKey EntryKey |
||
| bool | IsEqualToDefaultValue
(
PCGMetadataValueKey ValueKey |
||
| bool | IsValidName
(
const FName& Name |
||
| bool | IsValidName
(
const FString& Name |
Returns true if for valid attribute names, which are alphanumeric with some special characters allowed. | |
| void | Reset () |
Remove all entries, values and parenting. | |
| bool | SanitizeName
(
FString& InOutName |
Replaces any invalid characters in name with underscores. Returns true if Name was changed. | |
| void | Serialize
(
UPCGMetadata* InMetadata, |
||
| void | In the case of multi entry attribute and after some operations, we might have a single entry attribute with a default value that is different than the first entry. | ||
| void | SetValue
(
PCGMetadataEntryKey ItemKey, |
||
| void | SetValue
(
PCGMetadataEntryKey ItemKey, |
||
| void | SetValueFromValueKey
(
PCGMetadataEntryKey EntryKey, |
||
| void | SetValuesFromValueKeys
(
const TArrayView< const PCGMetadataEntryKey >& EntryKeys, |
Two arrays version of bulk setter to lock in write only once. Both arrays must be the same size. | |
| void | SetValuesFromValueKeys
(
const TArrayView< const TTuple< PCGMetadataEntryKey, PCGMetadataValueKey > >& EntryValuePairs, |
Bulk setter to lock in write only once. | |
| void | SetValuesFromValueKeys
(
const TArrayView< const PCGMetadataEntryKey*const >& EntryKeys, |
||
| void | SetWeightedValue
(
PCGMetadataEntryKey ItemKey, |
||
| void | SetZeroValue
(
PCGMetadataEntryKey ItemKey |
||
| bool |