Skip to main content

Building Piece Options

Each Socket Rule contains a list of options. The generator picks one of these options based on its Weight.

Piece Option Properties

  • Piece: The Building Piece Definition to spawn.
  • Weight: The relative probability of this option being chosen compared to others in the same rule.
  • Transform Offset: Additional translation, rotation, or scale to apply to the spawned piece.
  • Random Rotation: Instead of being completely random, this is an array of rotation values that the system will pick from. This is to ensure that pieces (like walls) always align with the building's grid or specific orientations rather than being at odd angles that don't fit.
  • Material Override: Forces a specific material or Material Palette choice for this piece, overriding the building's default.

Grouped Socket Rules

Grouped Socket Rules allow you to apply the same rule and options to multiple sockets simultaneously. This is useful for things like corner pieces where multiple sockets might share the same logic.

Grouped Socket Rules