unreal.PCGMatchAndSetWeightedByCategory

class unreal.PCGMatchAndSetWeightedByCategory(outer: Object | None = None, name: Name | str = 'None')

Bases: PCGMatchAndSetBase

PCGMatch and Set Weighted by Category

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGMatchAndSetWeightedByCategory.h

Editor Properties: (see get_editor_property/set_editor_property)

  • categories (Array[PCGMatchAndSetWeightedByCategoryEntryList]): [Read-Write] Lookup entries (key -> weighted list)

  • category_attribute (Name): [Read-Write] Attribute to match against

  • category_type (PCGMetadataTypes): [Read-Write] Type of the attribute to match against.

  • should_mutate_seed (bool): [Read-Write] Controls whether the output data should mutate its seed - prevents issues when doing multiple random processes in a row

property categories: None

[Read-Write] Lookup entries (key -> weighted list)

Type:

(Array[PCGMatchAndSetWeightedByCategoryEntryList])

property category_attribute: Name

[Read-Write] Attribute to match against

Type:

(Name)

property category_type: PCGMetadataTypes

[Read-Write] Type of the attribute to match against.

Type:

(PCGMetadataTypes)

property should_mutate_seed: bool

[Read-Write] Controls whether the output data should mutate its seed - prevents issues when doing multiple random processes in a row

Type:

(bool)