Skip to main content

Building Piece Definition

A Building Piece Definition represents a single building component, such as a wall, a corner, or a floor slab.

How to Create

There are two main ways to create a Building Piece Definition:

1. Manual Creation

Right click menu for Building Piece Definition

  1. Right-click in the Content Drawer.
  2. Navigate to the D3kryption Building Generator menu.
  3. Select Building Piece Definition.

2. From Static Mesh (Bulk Creation)

This is the recommended way if you have many assets:

  1. Select one or more Static Mesh assets in the Content Drawer.
  2. Right-click on the selected assets.
  3. Navigate to D3kryption's Building Generator -> Generate Building Piece Definitions.
Sockets First

If you add your sockets to the Static Mesh before using the bulk creation tool, the system will automatically scan those sockets and add them to the Socket Rules list for you.

Building Piece Definition Editor

Editor Tools

Inside the Building Piece Definition editor, you will find two utility buttons under the Building Tools category:

  • Add Sockets To Socket Rules: Scans the assigned Static Mesh and adds any missing sockets to the Socket Rules list.
  • Add Sockets To Grouped Socket Rules: Similar to the above, but for Grouped Socket Rules.

Properties

PropertyDescription
Piece IDA unique identifier for this piece.
Piece TypeChoose between Static Mesh (standard) or Blueprint Actor (for interactive pieces like doors).
Static Mesh / Actor ClassThe actual asset that will be spawned.
Slot RulesRules for how materials should be applied to specific slots on the mesh. See Material Palettes for detailed mode explanations.
Socket RulesRules for what other pieces can connect to the sockets on this piece.
Grouped Socket RulesRules that apply to a group of sockets.

Best Practices

Material Merging

It is highly recommended not to merge opaque and transparent material-based meshes (such as a wall with a window) into a single Static Mesh if they are meant to be separate components. Doing so can cause shader glitches and sorting issues. It is better to have a wall piece and a separate window piece, or use a socket to place the glass.

Debugging with the DebugText Socket

If you want to see debug information for a specific piece in the world, you can add a socket named DebugText to the Static Mesh. When the Show Debug Text option is enabled on the Building Actor, information about that piece will be displayed at the location of this socket.