Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/MatchAndSet
Inheritance Hierarchy
- UObject
- UPCGMatchAndSetBase
- UPCGMatchAndSetWeighted
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/MatchAndSet/PCGMatchAndSetWeighted.h |
| Include | #include "MatchAndSet/PCGMatchAndSetWeighted.h" |
Syntax
UCLASS (BlueprintType, ClassGroup=(Procedural))
class UPCGMatchAndSetWeighted : public UPCGMatchAndSetBase
Remarks
This Match & Set object assigns randomly a value based on weighted ratios, provided in the entries.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bShouldMutateSeed | Controls whether the output data should mutate its seed - prevents issues when doing multiple random processes in a row | |
| TArray< FPCGMatchAndSetWeightedEntry > | Entries | Values and their respective weights |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Overridden from UPCGMatchAndSetBase
| Type | Name | Description | |
|---|---|---|---|
| void | MatchAndSet_Implementation
(
FPCGContext& Context, |
||
| void | PostLoad () |
||
| 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 |