Navigation
API > API/Plugins > API/Plugins/PCG
| Name | UPCGMatchAndSetWeightedByCategory |
| Type | class |
| Header File | /Engine/Plugins/PCG/Source/PCG/Public/MatchAndSet/PCGMatchAndSetWeightedByCategory.h |
| Include Path | #include "MatchAndSet/PCGMatchAndSetWeightedByCategory.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, ClassGroup=(Procedural))
class UPCGMatchAndSetWeightedByCategory : public UPCGMatchAndSetBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UPCGMatchAndSetBase → UPCGMatchAndSetWeightedByCategory
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/PCGMatchAndSetWeightedByCategory.h |
|
| Categories | TArray< FPCGMatchAndSetWeightedByCategoryEntryList > | Lookup entries (key -> weighted list) | MatchAndSet/PCGMatchAndSetWeightedByCategory.h |
|
| CategoryAttribute | FName | Attribute to match against | MatchAndSet/PCGMatchAndSetWeightedByCategory.h |
|
| CategoryType | EPCGMetadataTypes | Type of the attribute to match against. | MatchAndSet/PCGMatchAndSetWeightedByCategory.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void SetCategoryType
(
EPCGMetadataTypes InType |
Propagates (does not set) category (e.g. Match) type to entries. | MatchAndSet/PCGMatchAndSetWeightedByCategory.h |
Overridden from UPCGMatchAndSetBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void MatchAndSet_Implementation
(
FPCGContext& Context, |
MatchAndSet/PCGMatchAndSetWeightedByCategory.h | ||
virtual void SetType
(
EPCGMetadataTypes InType |
Sets & propagates type change from the owner settings object | MatchAndSet/PCGMatchAndSetWeightedByCategory.h | |
virtual bool ShouldMutateSeed() |
Queries whether we should mutate the seeds as a post-process | MatchAndSet/PCGMatchAndSetWeightedByCategory.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/PCGMatchAndSetWeightedByCategory.h | |
virtual bool ValidatePreconditions_Implementation
(
const UPCGPointData* InPointData |
MatchAndSet/PCGMatchAndSetWeightedByCategory.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
MatchAndSet/PCGMatchAndSetWeightedByCategory.h | ||
virtual void PostLoad() |
MatchAndSet/PCGMatchAndSetWeightedByCategory.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CategoryStringMode_DEPRECATED | EPCGMetadataTypesConstantStructStringMode | MatchAndSet/PCGMatchAndSetWeightedByCategory.h |