unreal.PCGMatchAndSetWeighted

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

Bases: PCGMatchAndSetBase

This Match & Set object assigns randomly a value based on weighted ratios, provided in the entries.

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGMatchAndSetWeighted.h

Editor Properties: (see get_editor_property/set_editor_property)

  • entries (Array[PCGMatchAndSetWeightedEntry]): [Read-Write] Values and their respective weights

  • 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 entries: None

[Read-Write] Values and their respective weights

Type:

(Array[PCGMatchAndSetWeightedEntry])

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)