unreal.WaveFunctionCollapseNeighborRule

class unreal.WaveFunctionCollapseNeighborRule(key_object: SoftObjectPath = Ellipsis, neighbors: None = [], spawn_objects: None = [], spawn_relative_transform: Transform = Ellipsis, spawn_chance: float = 0.0)

Bases: StructBase

Wave Function Collapse Neighbor Rule

C++ Source:

  • Plugin: WaveFunctionCollapse

  • Module: WaveFunctionCollapse

  • File: WaveFunctionCollapseBPLibrary.h

Editor Properties: (see get_editor_property/set_editor_property)

  • key_object (SoftObjectPath): [Read-Write]

  • neighbors (Array[WaveFunctionCollapseNeighbor]): [Read-Write]

  • spawn_chance (float): [Read-Write] SpawnChance 1 = 100 % chance to spawn, SpawnChance 0 = 0 % chance to spawn

  • spawn_objects (Array[SoftObjectPath]): [Read-Write]

  • spawn_relative_transform (Transform): [Read-Write]

property key_object: SoftObjectPath

[Read-Write]

Type:

(SoftObjectPath)

property neighbors: None

[Read-Write]

Type:

(Array[WaveFunctionCollapseNeighbor])

property spawn_chance: float

[Read-Write] SpawnChance 1 = 100 % chance to spawn, SpawnChance 0 = 0 % chance to spawn

Type:

(float)

property spawn_objects: None

[Read-Write]

Type:

(Array[SoftObjectPath])

property spawn_relative_transform: Transform

[Read-Write]

Type:

(Transform)