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 |
|
Functions
Public
Overridden from UPCGMatchAndSetBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void MatchAndSet_Implementation
(
FPCGContext& Context, |
MatchAndSet/PCGMatchAndSetWeighted.h | ||
virtual void SetType
(
EPCGMetadataTypes InType |
Sets & propagates type change from the owner settings object | MatchAndSet/PCGMatchAndSetWeighted.h | |
virtual bool ShouldMutateSeed() |
Queries whether we should mutate the seeds as a post-process | MatchAndSet/PCGMatchAndSetWeighted.h | |
virtual bool UsesRandomProcess() |
Queries whether this object uses a random process - note that this is expected to be static through the life of the object | MatchAndSet/PCGMatchAndSetWeighted.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
MatchAndSet/PCGMatchAndSetWeighted.h | ||
virtual void PostLoad() |
MatchAndSet/PCGMatchAndSetWeighted.h |