Navigation
API > API/Plugins > API/Plugins/PCG
This Match & Set object looks up an attribute on a given point, then looks up its entries to find a match; if there is one, then it sets it value.
| Name | UPCGMatchAndSetByAttribute |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/MatchAndSet/PCGMatchAndSetByAttribute.h |
| Include Path | #include "MatchAndSet/PCGMatchAndSetByAttribute.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup=(Procedural))
class UPCGMatchAndSetByAttribute : public UPCGMatchAndSetBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UPCGMatchAndSetBase → UPCGMatchAndSetByAttribute
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Entries | TArray< FPCGMatchAndSetByAttributeEntry > | Lookup entries (key-value pairs) | MatchAndSet/PCGMatchAndSetByAttribute.h |
|
| MatchSourceAttribute | FName | Attribute to match on the data | MatchAndSet/PCGMatchAndSetByAttribute.h |
|
| MatchSourceType | EPCGMetadataTypes | Type of the attribute to match against. | MatchAndSet/PCGMatchAndSetByAttribute.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void SetSourceType
(
EPCGMetadataTypes InType |
Propagates (does not set) the Match type to the entries | MatchAndSet/PCGMatchAndSetByAttribute.h |
Overridden from UPCGMatchAndSetBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void MatchAndSet_Implementation
(
FPCGContext& Context, |
MatchAndSet/PCGMatchAndSetByAttribute.h | ||
virtual void SetType
(
EPCGMetadataTypes InType |
Sets & propagates type change from the owner settings object | MatchAndSet/PCGMatchAndSetByAttribute.h | |
virtual bool ValidatePreconditions_Implementation
(
const UPCGPointData* InPointData |
MatchAndSet/PCGMatchAndSetByAttribute.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
MatchAndSet/PCGMatchAndSetByAttribute.h | ||
virtual void PostLoad() |
MatchAndSet/PCGMatchAndSetByAttribute.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MatchSourceStringMode_DEPRECATED | EPCGMetadataTypesConstantStructStringMode | String type of the attribute to match against (if required). | MatchAndSet/PCGMatchAndSetByAttribute.h |