Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/MatchAndSet
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UPCGMatchAndSetBase
- UPCGMatchAndSetByAttribute
- UPCGMatchAndSetWeighted
- UPCGMatchAndSetWeightedByCategory
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/MatchAndSet/PCGMatchAndSetBase.h |
| Include | #include "MatchAndSet/PCGMatchAndSetBase.h" |
Syntax
UCLASS&40;Abstract, BlueprintType, Blueprintable, ClassGroup&61;&40;Procedural&41;&41;
class UPCGMatchAndSetBase : public UObject
Remarks
Base class for Match & Set objects. Note that while it currently deals with points, it might be extended in the future. This class is extensible and can be implemented in different ways, but its role should be simple: For a given point, if it matches some criteria ("Match"), apply it some value ("Set"). It can be a lookup, a random process or something more involved.
Variables
| Type | Name | Description | |
|---|---|---|---|
| EPCGMetadataTypesConstantStructStringMode | StringMode | ||
| EPCGMetadataTypes | Type | For the sake of managing internal state a bit better, we keep a copy of the Set type & string subtype. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CreateAttributeIfNeeded
(
FPCGContext& Context, |
||
| void | MatchAndSet
(
FPCGContext& Context, |
Main function to process points, and pass them through the Match & Set logic. | |
| void | MatchAndSet_Implementation
(
FPCGContext& Context, |
||
| void | SetType
(
EPCGMetadataTypes InType, |
Sets & propagates type change from the owner settings object | |
| bool | Queries whether we should mutate the seeds as a post-process | ||
| bool | Queries whether this object uses a random process - note that this is expected to be static through the life of the object | ||
| bool | ValidatePreconditions
(
const UPCGPointData* InPointData |
Early check to prevent issues when the data does not contain the required information to perform the operation | |
| bool | ValidatePreconditions_Implementation
(
const UPCGPointData* InPointData |