Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/MatchAndSet
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UPCGMatchAndSetBase
- UPCGMatchAndSetWeighted
References
| Module | PCG |
| Header | /Engine/Plugins/Experimental/PCG/Source/PCG/Public/MatchAndSet/PCGMatchAndSetWeighted.h |
| Include | #include "MatchAndSet/PCGMatchAndSetWeighted.h" |
Syntax
UCLASS&40;BlueprintType, ClassGroup&61;&40;Procedural&41;&41;
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 |
Overridden from UPCGMatchAndSetBase
| Type | Name | Description | |
|---|---|---|---|
| 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 |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |