Navigation
API > API/Plugins > API/Plugins/PCG
This Match & Set object assigns randomly a value based on weighted ratios, provided in the entries.
| Name | UPCGMatchAndSetWeighted |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/MatchAndSet/PCGMatchAndSetWeighted.h |
| Include Path | #include "MatchAndSet/PCGMatchAndSetWeighted.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup=(Procedural))
class UPCGMatchAndSetWeighted : public UPCGMatchAndSetBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UPCGMatchAndSetBase → UPCGMatchAndSetWeighted
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bShouldMutateSeed | bool | Controls whether the output data should mutate its seed - prevents issues when doing multiple random processes in a row | MatchAndSet/PCGMatchAndSetWeighted.h |
|
| Entries | TArray< FPCGMatchAndSetWeightedEntry > | Values and their respective weights | MatchAndSet/PCGMatchAndSetWeighted.h |
|