Skip to main content

Board System for Game Designers

info

Audience: Game Designers

Last Updated: February 2026

Related Systems: GameElements, Notebook, Factory, Stage Management, TeamSpaces

Related:

TODO (from Notion): link pending.


Introduction​

Glossary​

TermWhat It Means
CellA single space on the board (a square, a rectangle, a triangle). Cells are the "positions" where pieces can be.
EdgeA connection between two cells. If two cells share an edge, pieces can potentially move between them.
FlagA marker on an edge that describes its state (road, wall, blocked). Flags can be added and removed during play.
Board GraphThe invisible logical structure behind the board: all cells and their connections.
Board SubsystemThe central system you talk to for all board operations — queries, pathfinding, flags, everything.
ConverterTranslates between board coordinates (cell "3,4") and world positions (where things actually are in 3D space).
SubgraphA set of edges added by a tile when it's placed on the board. Think: puzzle piece connections.
TileAn actor that adds new connections to the board when placed (used in games like Hamlet).

What Is the Board System?​

Think of the Board System as a city map for your game:

  • Cells are the intersections
  • Edges are the roads connecting them
  • Flags are the road signs (one-way, blocked, type of terrain)
  • The Converter is your GPS — it knows where each intersection is in the real world
BOARD GRAPH (what the system sees)

"0,0" ——— "1,0" ——— "2,0"
| | |
| | |
"0,1" ——— "1,1" ——— "2,1"
| | |
| | |
"0,2" ——— "1,2" ——— "2,2"

Each intersection = a Cell (with an ID like "col,row")
Each line = an Edge (a connection between cells)

The Board System manages this map so you don't have to. It handles:

  • Creating the grid — square, rectangular, or triangular
  • Placing pieces on cells — using cell IDs in your Data Tables
  • Pathfinding — "can a piece reach from A to B?"
  • Edge state — marking roads, walls, barriers with flags
  • Dynamic tiles — adding connections during gameplay (like Hamlet)
  • Multiplayer sync — all players see the same board state automatically

Games Using This System​

GameGrid TypeKey Features
HamletTriangularTiles (subgraphs), dynamic board building, edge flags
Chess / CheckersSquare (8x8)Fixed grid, piece placement on cells

Prerequisites​

Before working with the Board System, you should understand:

SystemWhy You Need It
GameElement SystemEvery board piece is a GameElement. The board itself is a GameElement.
Factory SystemThe board and its pieces are deployed (spawned) by the Factory during game setup.
Stage ManagementThe board deploys during the Deploy stage. Understanding the stage pipeline helps you know when things happen.
Notebook SystemTiles persist their connections via the Notebook. Piece placement uses Notebook keys for bidirectional tracking.

End-to-End Tutorial: Setting Up a Checkers Board​

This walkthrough creates a complete 8x8 Checkers board with 24 pieces. Follow each step in order.

Step 1: Create the Board Data Asset​

Create a new Data Asset of class DA_Board (right-click in Content Browser → Data Asset → search for DA_Board).

Configure it with:

PropertyValueWhy
Board Builder ClassYour custom Blueprint builder (e.g., BP_014CHK_BoardBuilder)Controls how the grid is created
Board To World Converter ClassSquareGridMaps grid coordinates to world positions
Converter Factor5.25Distance between cells in centimeters (1 Unreal unit = 1 cm)
Origin Offset(see below)Offset from the actor's pivot to where the grid starts
Cols8Number of columns
Rows8Number of rows
World RepresentationYour board Blueprint (e.g., BP_014CHK_Board)The visual actor players see and interact with

About Origin Offset: The board actor's pivot is typically at its base center (0, 0, 0 relative). The grid calculation starts from that point and extends to the right and downward. The Origin Offset adjusts where the grid actually begins:

  • Z offset: The board has physical height — without a Z offset, pieces would sit on the table surface instead of on top of the board. Set Z to the height of the board's playing surface.
  • X/Y offset: Without an offset, the grid starts at the actor's pivot and extends in one direction. To center the grid on the board mesh, offset by half the board's width and height in negative X/Y.
  • Why manual? The system could calculate this automatically for simple symmetric boards, but some games have asymmetric layouts, off-center grids, or irregular board shapes where automatic centering wouldn't work. Manual offset gives you full control.

TODO — Image: GEDA_014CHK_Board Data Asset showing all configured fields

Step 2: Create the Board Builder Blueprint​

Create a new Blueprint that inherits from BoardBuilder.

In the Prepare event (called just before building):

Event Prepare:
1. Construct a SquareGrid Creator (Cols=8, Rows=8)
2. Call AddBoardCreator(Creator) on self

That's it for Checkers — no connectors or initializers needed. The creator generates 64 cells with IDs like "0,0", "1,0", ... "7,7".

info

Note: More complex games can add Connectors (to define movement patterns) and Initializers (for post-creation setup) in the same Prepare event. See Section 5.

TODO — Image: BP_014CHK_BoardBuilder Prepare event graph

Step 3: Create the Board World Representation​

Create a Blueprint actor (e.g., BP_014CHK_Board) with:

  • A Board Component (added automatically when the factory creates it)
  • Your visual board mesh (the 8x8 checkerboard surface)

In the Event Graph, set up the initialization flow:

Event: Board Component → OnGameElementInitialize
│
├─ Switch Has Authority
│ (this Blueprint node checks if we are the server/host —
│ board setup must only run on the server to avoid duplicates)
│
└─ If Board Subsystem is initialized AND not from snapshot:
→ Call OnBoardInitialized()
Else:
→ Subscribe to BoardSubsystem.OnBoardInitialized delegate
(the Board Subsystem owns this delegate and broadcasts
system-wide notifications like board initialization, game state
changes, etc. Find it via Get Subsystem → Board Subsystem)

The OnBoardInitialized function handles placing piece slots:

Function: OnBoardInitialized()
│
├─ Get all cells from Board Subsystem
│
├─ For each cell:
│ └─ If IsPlayableCell(Cell):
│ → FactorySubsystem.CreateGameElement(
│ ItemID: "PieceSlot",
│ PlacementConfig: bUseBoardCell=true, BoardCell=Cell.ID
│ )
│
└─ When done:
→ GameMasterSubsystem.DeploySection("Pieces")
(deploys 24 pieces from a separate DataTable)

IsPlayableCell determines which cells get slots (dark squares in Checkers):

Function: IsPlayableCell(Cell) → bool
│
├─ Get cell position (Col, Row) from Board Subsystem
└─ Return: Round(Col + Row) % 2 == 0
(dark squares: 0+0, 1+1, 2+0, 3+1, etc.)
Note: Round() is needed because cell positions come from
an FVector (floats), not integers. Without rounding, floating
point imprecision (e.g., 2.9999 instead of 3) would break
the modulo check.

TODO — Image: BP_014CHK_Board Event Graph showing OnBoardInitialized flow

Step 4: Configure the Factory​

In your game's GameConfig Data Asset, you need two Data Tables:

A) Factory Config (e.g., DT_014CHK_FactoryConfig):

Row NameTypeFactory
Default—GameElementFactoryActor
BoardBoardGameElementFactoryBoard
PiecePieceGameElementFactoryActor
danger

CRITICAL: The "Board" row with GameElementFactoryBoard is essential. Without it, the board spawns as a regular actor and the builder pipeline never runs. No graph, no cells, no pathfinding — nothing works.

B) Game Element Index (e.g., DT_014CHK_GameElementsIndexGeneral):

Set your board element's Type to "Board" — this must match the row name in the Factory Config.

TODO — Image: DT_014CHK_FactoryConfig showing the Board row with GameElementFactoryBoard

Step 5: Configure the Game Setup DataTable​

Your GameSetup DataTable defines what gets deployed:

Main setup (DeployKey = "StartUp"):

RowGameElementPlacementConfigNotes
Board"Board"(default transform)Spawns the board actor + builds graph

Pieces setup (DeployKey = "Pieces", deployed separately):

RowGameElementbUseBoardCellBoardCellNotes
WhitePiece1"CheckerPiece_White"Yes"0,0"White piece on cell 0,0
WhitePiece2"CheckerPiece_White"Yes"2,0"White piece on cell 2,0
......Yes...12 white pieces total
BlackPiece1"CheckerPiece_Black"Yes"1,5"Black piece on cell 1,5
......Yes...12 black pieces total

Step 6: Deploy Flow​

When the game starts, this happens automatically:

sequenceDiagram
participant Stage as Stage Management
participant Factory as Factory
participant Board as Board Actor
participant Sub as Board Subsystem

Stage->>Factory: Deploy "StartUp" elements
Note over Factory: Phase 1: spawn actors WITHOUT board cell
Factory->>Board: Spawn board actor (BP_014CHK_Board)
Factory->>Factory: BoardBuilder.Build() → creates 64 cells
Factory->>Sub: InitializeBoard(BoardActor)

Note over Factory: Phase 2: spawn actors WITH board cell
Note over Factory: (nothing in "StartUp" uses board cells here)

Board->>Board: OnGameElementInitialize fires
Board->>Board: OnBoardInitialized() → creates 32 PieceSlots
Board->>Factory: DeploySection("Pieces")

Note over Factory: Phase 1: (no non-board pieces)
Note over Factory: Phase 2: spawn 24 pieces on board cells
Factory->>Sub: GetCellByID("0,0") → world transform
Factory->>Factory: Place piece at cell position
info

Important: Not all boards start with pieces. In Go, for example, the board starts empty and players place stones during gameplay. The piece placement in Checkers is game-specific logic, not a requirement of the Board System.


Board Types — Choosing Your Grid​

The Board System supports three grid geometries:

Grid TypeCell ShapeCell IDsBest ForExample
SquareSquares"col,row" (e.g., "3,4")Traditional boards: Chess, Checkers, Go8x8, configurable
RectangleRectangles"col,row"Non-square grids with different row/column spacing10x8 with wide columns
TriangleEquilateral triangles"N_u_v"Hex-like games, tile placementHamlet

TODO — Image: Checkers and Hamlet boards

Configuration per Grid Type​

Square / Rectangle Grid:

PropertyWhat It DoesDefault
ColsNumber of columns—
RowsNumber of rows—
FactorDistance between cells in cm (uniform for Square)100
FactorColsColumn spacing in cm (Rectangle only)100
FactorRowsRow spacing in cm (Rectangle only)100
info

Note: The default Factor of 100 cm is rarely used as-is. Always tune it to match your board mesh dimensions — for example, Checkers uses 5.25 cm for its small board.

Triangle Grid:

PropertyWhat It DoesDefault
Target AABB SizeBounding box to fill with triangles—
Side LengthTriangle edge length in Unreal units100
Pointy TopOrientation: pointy-top vs flat-topfalse
Grid Yaw Rotation OffsetRotation in degrees0
info

Note: Triangle grids don't use Cols/Rows. You define a bounding area and a triangle size, and the system fills the area with triangles.


How the Board Builds Itself​

The Build Pipeline​

Think of building a board like building a city:

  1. The Surveyor (Creator) maps out all the lots → creates cells
  2. The Road Builder (Connector) lays roads between lots → creates edges
  3. The City Planner (Initializer) assigns zones and rules → post-setup
flowchart LR
A["1. Prepare<br>(your Blueprint hook)"] --> B["2. Creators<br>(generate cells)"]
B --> C["3. Connectors<br>(link cells with edges)"]
C --> D["4. Initializers<br>(post-creation setup)"]
D --> E["5. Done!<br>Board ready to use"]

What Each Step Does​

StepWhat HappensYou Configure
PrepareYour Blueprint event. Register creators, connectors, and initializers here.Override the Prepare event in your Builder Blueprint
CreatorsGenerate all cells with positions. A square creator makes an X×Y grid.Which creator class + grid size
ConnectorsCreate edges between cells. Defines how cells connect (4-way, 8-way, diagonal).Which connector class
InitializersRun after cells and edges exist. Set up regions, assign properties, etc.Custom initializer Blueprints

Available Creators​

CreatorWhat It Creates
SquareGrid CreatorGrid of square cells. Configure Cols and Rows.
TriangleGrid CreatorGrid of triangular cells. Configure bounding size and triangle side length.

Available Connectors​

ConnectorMovement PatternUse Case
Square4North, South, East, WestOrthogonal movement only
Square8All 8 directions (including diagonals)Orthogonal + diagonal movement
CrossedAlternating diagonal patternDiagonals on every other cell, producing a staggered connection pattern
info

Note: Connectors are for advanced use of the board as a graph (e.g., when game rules need to query paths or connectivity). Many games, like Checkers, don't use connectors at all — their movement logic is handled entirely in game-specific Blueprints.

tip

Tip: You can use multiple creators and connectors in the same builder. They are processed in sequence. For example, you could create a square grid AND then add custom connections between specific cells.

Configuring the Builder​

All of this is set in the Board Data Asset:

FieldWhat to Set
Board Builder ClassYour Blueprint that inherits from BoardBuilder
Board To World Converter ClassSquareGrid, RectGrid, or TriangleGrid

Your Builder Blueprint's Prepare event registers the creators and connectors:

Event Prepare:
1. Construct SquareGrid Creator (Cols=8, Rows=8)
2. Call AddBoardCreator(Creator)
3. Construct Square4 Connector
4. Call AddBoardConnector(Connector)

Deploying the Board and Placing Pieces​

How the Board Deploys​

The board deploys through the Factory System just like any other game element. The key difference: the Factory Config must have a row with type "Board" mapped to the Board Factory, which triggers the builder pipeline.

Two-Phase Deploy​

The deploy system runs in two phases automatically:

  1. Phase 1: Spawn all elements that do NOT reference board cells (including the board itself)
  2. Phase 2: Spawn all elements that DO reference board cells (pieces placed on cells)

This guarantees the board exists and its cells are ready before any piece tries to snap to a cell.

Placing Pieces on Board Cells​

In your GameSetup DataTable, set these fields on a piece's Placement Config:

FieldValueWhat It Does
bUseBoardCellYes (checked)Tells the Factory to place this piece on a board cell instead of a fixed position
BoardCelle.g., "3,4"The cell ID where the piece spawns

When a piece is placed on a cell, the system automatically writes bidirectional references to the Notebook:

  • On the piece's page: "Which cell am I on?" → stores the cell's GameElement ID
  • On the cell's page: "Who is on me?" → stores the piece's GameElement ID

Cell ID Format​

Grid TypeFormatExamples
Square / Rectangle"col,row""0,0", "3,4", "7,7"
Triangle"N_u_v""N_0_0", "N_2_5", "N_-1_3"
info

Triangle cell IDs: The N prefix is always literal (it doesn't change). u and v are integer coordinates in an axial coordinate system — two basis vectors at 60 degrees that naturally describe triangular/hexagonal grids. Unlike square grids where coordinates are intuitive (col, row), triangle coordinates can be negative (e.g., "N_-1_3") depending on the grid's origin. You generally don't need to construct these IDs manually — use GetCellByWorldPosition() to find cells by location instead.

warning

Future change planned: The "N_u_v" naming format is inconsistent with the "col,row" format used by square grids. This will be changed in the future to use a unified "col,row" format across all grid types for system coherence. If you write code that parses cell IDs directly, be aware this format will change.

Partial Deployment​

You can deploy elements in stages using Deploy Keys. In the Checkers example:

  • "StartUp" deploys the board and base elements
  • "Pieces" deploys the 24 checker pieces (triggered by Blueprint after slots are created)

Call DeploySection("Pieces") from your board Blueprint when you're ready to place pieces.


Working with Cells​

Querying Cells​

OperationHowReturns
Get all cellsBoardSubsystem → GetCells()Array of all cells
Find cell by IDBoardSubsystem → GetCellByID("3,4")The cell at that ID
Find cell by positionBoardSubsystem → GetCellByPosition(Col, Row)The cell at that grid position
Find cell at world locationBoardSubsystem → GetCellByWorldPosition(WorldVector)The nearest cell to that 3D point
Get cell's world positionBoardSubsystem → GetWorldPosition(Cell)Where this cell is in 3D space
Get cell's world transformBoardSubsystem → GetWorldTransform(Cell)Full position + rotation in 3D
Get all neighborsBoardSubsystem → GetNeighbours(Cell)All cells connected to this one
Check if connectedBoardSubsystem → AreCellsConnected(Cell1, Cell2)True if an edge exists between them

Common Operations​

Place something at a cell's position:

Cell = BoardSubsystem.GetCellByID("3,4")
WorldTransform = BoardSubsystem.GetWorldTransform(Cell)
MyActor.SetActorTransform(WorldTransform)

Find which cell an actor is nearest to:

Cell = BoardSubsystem.GetCellByWorldPosition(MyActor.GetActorLocation())
CellID = Cell.ID → e.g., "3,4"

Get all cells around a position:

Neighbors = BoardSubsystem.GetNeighbours(Cell)
For each Neighbor in Neighbors:
→ do something with it
warning

WARNING: Per-Cell Notebook Data Does NOT Persist

Each cell has its own GameElement ID, and you can read and write data to cells via the Notebook during gameplay. However, per-cell Notebook data is NOT saved or restored when the game is saved and loaded — it will be lost.

What persists and what doesn't:

  • Data on pieces (actors on the board) → fully persisted via Notebook
  • Subgraph connections and edge flags → persisted (implemented for Hamlet)
  • Data written to cell GameElement IDs → works in memory, lost on save/load

What this means for you:

  • Store game state on pieces, not on the cells they occupy
  • If your game needs persistent per-cell data, consult with the code team first — it will require implementation work
  • No current game uses per-cell data persistence

Pathfinding​

warning

WARNING: Pathfinding — Not Used by Any Current Game

The Board System includes a built-in A* pathfinding algorithm, but no game in production currently uses it. The API exists and is functional, but it has not been battle-tested in a real game scenario.

If your game needs pathfinding, consult with the code team first to validate that the current implementation covers your requirements (weighted edges, flag-aware traversal, custom heuristics, etc.).

The Board System includes built-in A* pathfinding that works on any grid type.

Finding a Path​

Found = BoardSubsystem.GetPath(StartCell, GoalCell, OutPath)
If Found:
→ OutPath contains the list of cells from start to goal
→ Iterate to animate movement, show highlights, etc.

Checking Reachability​

Sometimes you just need to know "can I get there?" without caring about the exact route:

Connected = BoardSubsystem.AreCellsConnected(CellA, CellB)

Getting Distance​

Distance = BoardSubsystem.GetDistance(CellA, CellB)
→ Returns the straight-line distance in board coordinates

Weight = BoardSubsystem.GetWeight(CellA, CellB)
→ Returns the traversal cost of the edge between connected cells

Pathfinding from World Positions​

If you have world positions instead of cells:

Found = BoardSubsystem.GetPathFromWorldPosition(
StartWorldPos,
GoalWorldPos,
OutPath
)

When Pathfinding Won't Work​

flowchart TD
A["GetPath returns false"] --> B{"Are cells connected<br>to the graph?"}
B -->|No| C["Cell is isolated —<br>no edges to/from it"]
B -->|Yes| D{"Is there a<br>continuous path?"}
D -->|No| E["Cells are on<br>disconnected islands"]
D -->|Yes| F["Check edge flags —<br>a flag rule may be<br>blocking traversal"]

Edge Flags — Marking Roads, Walls, and Barriers​

What Are Edge Flags?​

Think of flags as road signs placed on the connections between cells. Each edge can have up to 8 different flags, and each flag can mean whatever your game needs:

  • Flag 1 = "Forest"
  • Flag 2 = "Mountain"
  • Flag 3 = "Road"
  • etc.
Cell A ———[Mountain]——— Cell B
| |
[Forest] [Mountain]
| |
Cell C ———[ Road ]——— Cell D

Why Reference-Counted?​

Flags use reference counting: if two different game elements both add the "Road" flag to the same edge, removing one doesn't remove the flag — it stays until both are removed.

This matters for tiles: if two adjacent tiles both contribute a "Road" flag to a shared edge, removing one tile leaves the road intact (from the other tile).

Setting and Removing Flags​

Set a flag:
BoardSubsystem.AddEdgeFlag(Edge, Flag1) → flag count: 1
BoardSubsystem.AddEdgeFlag(Edge, Flag1) → flag count: 2

Remove a flag:
BoardSubsystem.RemoveEdgeFlag(Edge, Flag1) → flag count: 1 (still active!)
BoardSubsystem.RemoveEdgeFlag(Edge, Flag1) → flag count: 0 (now gone)

Checking Flags​

Has flag?
BoardSubsystem.HasEdgeFlag(Edge, Flag1) → true/false

Get all flags:
BoardSubsystem.GetEdgeFlag(Cell1, Cell2, OutFlags)
→ OutFlags is a bitmask of all active flags

Flag Compatibility Rules​

You can define rules about which flags are compatible (can coexist) or incompatible (mutually exclusive):

SettingWhat It Does
Ignored FlagsFlags to skip when comparing (don't affect compatibility)
Compatibility RulesExplicit pairs: "Flag1 + Flag2 = compatible" or "Flag1 + Flag3 = incompatible"
Default IncompatibleIf no rule matches, assume incompatible (default: false = assume compatible)

Exclusive Flag Groups​

For cases where only one flag from a set should be active:

SettingExample
Exactly one requiredMovement type: Walk OR Swim OR Fly (must pick one)
Allow noneOptional rarity: Common OR Rare OR nothing

Tiles and Subgraphs — Building the Board During Play​

What Are Tiles?​

In some games (like Hamlet), the board isn't fixed — players build it during play by placing tiles. Think of tiles as puzzle pieces: each tile has edges that snap onto the board, creating new connections.

BEFORE placing tile:

Cell A ——— Cell B Cell E ——— Cell F
(disconnected island)

AFTER placing tile between them:

Cell A ——— Cell B ——— Cell E ——— Cell F
↑ new connections from tile ↑

How Tiles Work​

Each tile actor has a Subgraph Component that defines its local edges. When the tile is placed on the board:

  1. The tile's local edges are projected onto the board grid
  2. Local vertex positions become real cell IDs
  3. New connections are added to the board graph
  4. The tile gets a unique Subgraph ID (so it can be removed later)
sequenceDiagram
participant Player as Player
participant Tile as Tile Actor
participant Sub as Subgraph Component
participant Board as Board Subsystem

Player->>Tile: Places tile on board
Tile->>Sub: ApplySubgraphToBoard(SnappedTransform)
Sub->>Sub: Project local edges → board cells
Sub->>Board: ConnectSubgraph(SubgraphID, ProjectedEdges)
Board->>Board: Add connections to graph
Sub->>Sub: Save edges to Notebook (persistence)
Note over Board: Board graph updated —<br>all players see new connections

Setting Up a Tile in the Editor​

  1. Add a Subgraph Component to your tile actor
  2. Add vertex marker components (scene components) at each connection point
  3. Configure Edge Configurations on the Subgraph Component:
    • Each edge references two vertex markers
    • Optionally set flags per edge

TODO — Image: Tile actor in editor with Subgraph Component and vertex markers

Edge Configuration FieldWhat It Means
Component Ref Vertex 1First vertex marker (a scene component on your tile)
Component Ref Vertex 2Second vertex marker
FlagsOptional edge flags bitmask (road type, wall, etc.)

Edge Compatibility Checking​

Before placing a tile, the system can validate that the tile's edge flags are compatible with existing board edges. Configure Flag Evaluation Rules on the Subgraph Component to enable this.

The Subgraph Component provides validation state:

PropertyWhat It Tells You
Is Valid PositionTrue if tile can be placed here (not out of range AND edges compatible)
Out Of RangeTrue if tile is too far from the board to snap
Mismatch EdgesTrue if edge flags don't match the board

A Real Example: Hamlet Tiles​

In Hamlet, each tile has a silhouette formed by vertices, and the edges between those vertices describe the terrain type (road, forest, mountain). The edge flags encode this terrain:

  • A road edge cannot touch a forest or mountain edge
  • A forest edge CAN touch a mountain edge (and vice versa)
  • The system uses Flag Evaluation Rules to enforce these constraints automatically

When a player tries to place a tile, IsValidPosition() checks whether all the tile's edges are compatible with the adjacent board edges — if not, the tile can't be placed there.

Removing a Tile​

SubgraphComponent.RemoveSubgraphFromBoard()
→ Disconnects all edges owned by this tile
→ Other tiles' connections remain intact
→ Notebook updated automatically

Events​

The Subgraph Component fires two events you can bind to:

EventWhen It Fires
OnSubgraphConnectAfter the tile's edges are successfully connected to the board
OnSubgraphDisconnectAfter the tile's edges are removed from the board

Use these to trigger visual feedback, scoring, or game rule checks when tiles are placed or removed.

Persistence​

Tiles persist their connections through the Notebook System. When a game is saved and loaded:

  • Each tile's Subgraph ID is stored in the Notebook
  • Edge data is encoded and stored per tile
  • On load, tiles reconnect their edges to the board automatically

Board Displacement — Moving the Board in VR (Advanced)​

Some boards are too large to fit on the virtual table. Board Displacement allows players to grab and drag the board, scrolling it to reveal areas beyond the physical table space.

The system works by creating a temporary visual snapshot (called an impostor), letting the player drag it, and then moving all the actual pieces to match.

warning

Advanced Feature — Code Team Responsibility

Board Displacement requires complex Blueprint and C++ setup including:

  • Impostor mesh generation and management
  • VR grab interaction with bounds clamping
  • Piece registration and movement
  • Board graph node regeneration
  • Network replication coordination

If your game needs board displacement, contact the development team. This feature is configured and implemented by engineers, not game designers.


Board Events and Delegates​

Available Events​

EventWhen It FiresUse For
OnGameElementInitializeWhen the board's GameElement component initializesInitial setup, binding delegates
OnBoardInitializedWhen the board graph is fully built and readyPlacing slots, spawning pieces, starting game logic
OnDisplacementClampedOnWhen board hits displacement boundsUI feedback (advanced — code team)
OnDisplacementClampedOffWhen board leaves displacement boundsRemove UI feedback (advanced — code team)

Subscription Pattern​

The correct way to listen for board readiness:

sequenceDiagram
participant Board as Your Board Blueprint
participant GE as GameElement Component
participant Sub as Board Subsystem

GE->>Board: OnGameElementInitialize
Board->>Board: Switch Has Authority (server only)

alt Board Subsystem already initialized
Board->>Board: OnBoardInitialized() → proceed immediately
else Board not ready yet
Board->>Sub: Subscribe to OnBoardInitialized delegate
Note over Board: Wait...
Sub->>Board: OnBoardInitialized fires later
Board->>Board: Now proceed with setup
end

About "Switch Has Authority"​

Switch Has Authority is a Blueprint node that checks whether this instance of the game is the server (the host who created the game session). Board setup — creating cells, spawning slots, deploying pieces — must only happen on the server. All clients receive the results automatically through replication.

You'll see this node at the start of most board initialization flows. If you're on a client, the execution stops there — the client will receive the board state from the server.

Race Condition Safety​

The board might not be initialized when your Blueprint first runs. Always check:

If BoardSubsystem.IsInitialized():
→ Proceed immediately
Else:
→ Subscribe to OnBoardInitialized and wait

Never call board operations (GetCells, GetPath, etc.) before the board is initialized — they will fail or return empty data.


Configuration Reference​

Board Data Asset Properties​

PropertyWhat It DoesWhere to Set
Board Builder ClassBlueprint that orchestrates board creationData Asset
Board To World Converter ClassHow grid coordinates map to world positionsData Asset
Origin OffsetOffset from actor origin for the gridData Asset
Cols / RowsGrid dimensions (square/rect grids)Data Asset
Side LengthTriangle edge size (triangle grids)Data Asset
Pointy TopTriangle orientation (triangle grids)Data Asset
World RepresentationThe visual actor players seeData Asset
Debug VisualizationEnables debug drawing of nodes, edges, and displacer boundsProject Settings → Board Game Mechanics → Debug

Converter Settings​

ConverterPropertiesNotes
SquareGridFactor (uniform spacing)Same spacing on both axes
RectGridFactorCols, FactorRowsDifferent spacing per axis
TriangleGridSideLength, GridYawRotationOffset, PointyTopEquilateral triangle geometry

Subgraph Component Settings (for Tiles)​

PropertyWhat It DoesDefault
Edge ConfigurationsList of local edges (vertex pairs + flags)Empty
Flag Evaluation RulesRules for checking edge flag compatibility—
Max Distance To SnapMaximum distance (in cm) for the tile to snap to the board75
Check EdgesEnable edge flag compatibility validationfalse
DebugShow debug visualization of edges and verticesfalse

Factory Config Requirements​

Row NameTypeFactoryRequired?
Default—GameElementFactoryActorRecommended (fallback)
BoardBoardGameElementFactoryBoardYES — without this, the builder pipeline won't run
PiecePieceGameElementFactoryActorIf your game has pieces

Common Mistakes​

Mistake 1: Querying the Board Before Initialization​

WRONG: Calling GetCells() or GetPath() in BeginPlay

Event BeginPlay:
Cells = BoardSubsystem.GetCells() ← EMPTY! Board not ready yet

CORRECT: Wait for OnBoardInitialized

Event OnBoardInitialized:
Cells = BoardSubsystem.GetCells() ← Works! Board is ready

WHY: The board graph doesn't exist until the builder pipeline completes. BeginPlay fires too early.


Mistake 2: Missing the Board Factory Row​

WRONG: Factory Config only has Default row

RowTypeFactory
Default—GameElementFactoryActor

Board spawns as a plain actor. No cells, no graph, nothing.

CORRECT: Add the Board row with the correct factory

RowTypeFactory
Default—GameElementFactoryActor
BoardBoardGameElementFactoryBoard

WHY: Without the Board factory, the system doesn't know to run the builder pipeline.


Mistake 3: Placing Tiles Without Checking Compatibility​

WRONG: Calling ApplySubgraphToBoard() without checking first

SubgraphComponent.ApplySubgraphToBoard(SnappedTransform)
→ Tile placed with incompatible edges! Game logic breaks.

CORRECT: Check IsValidPosition() first

If SubgraphComponent.IsValidPosition():
SubgraphComponent.ApplySubgraphToBoard(SnappedTransform)
Else:
→ Show "can't place here" feedback to player

WHY: IsValidPosition() checks both distance to board AND edge flag compatibility. Skipping it can create invalid board states.


Mistake 4: Expecting Per-Cell Data to Persist​

WRONG: Storing data per cell and expecting it to survive save/load

NotebookSubsystem.WriteInt(Cell.GameElementID, "HasTreasure", 1)
→ Save game → Load game → Data is GONE

CORRECT: Understand this feature is not yet integrated

→ Per-cell Notebook data works DURING a session
→ It does NOT survive save/load (not integrated with persistence)
→ Talk to the code team if your game needs this

WHY: The cell-to-Notebook persistence pipeline has not been implemented yet. It's planned but not needed by any current game.


Mistake 5: Hardcoding Cell IDs Across Grid Types​

WRONG: Assuming all grids use "col,row" format

Cell = BoardSubsystem.GetCellByID("3,4")
→ Works for square grids
→ FAILS for triangle grids (which use "N_u_v" format)

CORRECT: Use GameElement IDs or position-based queries for grid-agnostic code

Cell = BoardSubsystem.GetCellByWorldPosition(WorldLocation)
→ Works for ANY grid type

WHY: Different grid types use different cell naming conventions. World-position queries are universal.


Mistake 6: Storing Game State on Cells Instead of Pieces​

WRONG: Writing game data to a cell's GameElement ID

Cell = BoardSubsystem.GetCellByID("3,4")
NotebookSubsystem.WriteInt(Cell.GameElementID, "HasGold", 1)
→ Works during the session... but LOST on save/load!

CORRECT: Store game state on the piece (actor) that occupies the cell

PieceGameElementID = MyPieceActor.GameElementComponent.GetGameElementID()
NotebookSubsystem.WriteInt(PieceGameElementID, "HasGold", 1)
→ Persists correctly across save/load

WHY: Per-cell Notebook data is not integrated with the persistence system. Data written to cells works in memory but is lost when the game is saved and loaded. Piece data, on the other hand, is fully persisted. Always store game state on pieces, not on the cells they occupy.


Debug Visualization​

The Board System includes built-in debug tools that draw the board's internal structure directly in the viewport. These are invaluable when something doesn't look right — you can see cells, edges, and displacement bounds overlaid on your board.

Enabling Debug Drawing​

Go to Project Settings → Board Game Mechanics → Debug and toggle the visualizations you need:

SettingWhat It Shows
Enable Board Node DebugGreen spheres at every cell's world position. Useful to verify that the grid aligns with your visual board mesh.
Enable Board Edge DebugColored lines connecting cells. The color changes based on edge flags, so you can visually confirm connections and flag states.
Enable Displacer Bounds DebugShows the displacement system's boundaries. Only relevant for games using board displacement (advanced).

TODO — Image: Project Settings showing the three debug toggles under Board Game Mechanics → Debug

TODO — Image: In-game view with Node and Edge debug enabled, showing green spheres on cells and colored lines for edges on a board

info

Note: Debug visualization only works in Development builds (editor and non-Shipping). These settings are automatically disabled in Shipping builds — you don't need to remember to turn them off before packaging.

When to Use Debug Visualization​

  • Grid doesn't align with mesh: Enable Node Debug to see if cells are offset from where you expect them. Adjust the Origin Offset or Factor in your Data Asset.
  • Pieces landing in wrong cells: Enable Node Debug to confirm cell positions match your placement coordinates.
  • Connections missing or wrong: Enable Edge Debug to see which cells are connected. Missing edges usually mean a missing Connector in your Builder.
  • Edge flags not applied: Enable Edge Debug — different flags show as different colors. If all edges are the same color, flags may not be set correctly.
  • Tiles not snapping: Enable both Node and Edge Debug to see where the board expects the tile to connect.

Tile Debug (Subgraph Component)​

Tiles have their own debug toggle: the Debug checkbox on the Subgraph Component itself. When enabled, it draws the tile's local edges and vertices, which helps when configuring Edge Configurations.


Troubleshooting​

Issue 1: "Board doesn't appear after deploy"​

Details
SymptomThe board actor spawns but has no cells, no graph, board operations return empty data
CauseMissing "Board" row in Factory Config DataTable, OR the row type doesn't match the element type in GameElement Index
FixAdd a row with Type="Board" and Factory=GameElementFactoryBoard. Ensure your board element's type in the GameElement Index matches "Board"

Issue 2: "Pieces spawn at world origin instead of board cells"​

Details
SymptomPieces appear at (0, 0, 0) or at the board actor's origin, not on their assigned cells
CausebUseBoardCell is checked but BoardCell has the wrong cell ID, OR the board isn't initialized when pieces spawn
FixVerify cell IDs match the grid format (e.g., "3,4" not "3, 4" — no spaces). The two-phase deploy should handle ordering automatically; if using DeploySection, ensure the board is initialized first.

Issue 3: "Tile won't snap to the board"​

Details
SymptomTile hovers near the board but IsValidPosition() returns false
Cause ATile is too far from the board (exceeds MaxDistanceToSnap, default 75 units)
Cause BEdge flag compatibility check fails — tile's flags don't match board's flags
FixCheck the Subgraph Component's OutOfRange and MismatchEdges properties to identify which condition fails. Adjust tile position or review Flag Evaluation Rules.

Issue 4: "Edge flags seem to disappear"​

Details
SymptomYou add a flag to an edge, but it's gone after removing a tile
CauseFlags are reference-counted. If only one source added the flag, removing that source removes the flag.
FixThis is expected behavior. If you need a flag to persist independently of tiles, add it from a separate source (game rule, Blueprint) so it has its own reference count.

Issue 5: "Pathfinding returns no path"​

Details
SymptomGetPath() returns false even though both cells exist
Cause AThe cells are not connected by edges (no road between them)
Cause BThe board has no connectors configured — cells exist but have zero edges
Cause CA subgraph was disconnected, breaking the path
FixCheck AreCellsConnected(CellA, CellB) for direct connections. Check if your Builder Blueprint adds a Connector. Use debug visualization to see edges.

Issue 6: "Board looks different on client vs server"​

Details
SymptomClient sees different cell positions, missing edges, or stale state
CauseBoard data hasn't replicated yet, or a race condition during initialization
FixAlways check BoardSubsystem.IsInitialized() before querying. The system handles replication automatically, but client Blueprints may run before data arrives. Use the OnBoardInitialized delegate to ensure readiness.

Quick Diagnostic Checklist​

  • Does the Factory Config have a "Board" row with GameElementFactoryBoard?
  • Does the board element's type in GameElement Index match "Board"?
  • Is the Board Builder Class set in the Data Asset?
  • Does the Builder's Prepare event add at least one Creator?
  • Are you waiting for OnBoardInitialized before querying the board?
  • Are cell IDs in the correct format for your grid type?
  • Is the Converter Factor set to a reasonable value? (too small = cells overlap, too large = cells far apart)
  • For tiles: is the Subgraph Component configured with Edge Configurations?

Tips and Best Practices​

  1. Always use OnBoardInitialized — Never assume the board is ready. Subscribe to the delegate and wait.
  2. Use Deploy Keys for staged setup — Separate your board deployment from piece deployment using different keys (e.g., "StartUp" for board, "Pieces" for pieces).
  3. Use world-position queries for grid-agnostic code — GetCellByWorldPosition() works with any grid type, unlike ID-based queries which depend on naming conventions.
  4. Keep piece placement in DataTables — Use bUseBoardCell + BoardCell in your GameSetup DataTable whenever possible. The two-phase deploy handles ordering automatically.
  5. Test with debug visualization — Enable debug mode in your Board Data Asset to see cells, edges, and node IDs in the editor.
  6. One board per game — The current system supports one active board at a time per game. Multi-board support is reserved for future development.
  7. Check IsValidPosition before placing tiles — Always validate before calling ApplySubgraphToBoard(). The cost of checking is negligible; the cost of placing an invalid tile is a broken game state.

SystemHow It Relates to Boards
GameElement SystemEvery board and piece is a GameElement with a unique ID for tracking
Factory SystemDeploys the board and pieces; handles two-phase spawn ordering
Notebook SystemStores piece-cell relationships; tiles persist their connections here
Stage ManagementBoard deploys during the Deploy stage of the game lifecycle
TeamSpacesPlayer areas on the board can be assigned per team
PersistenceGame saves include board state (edges, subgraphs, positions) — except per-cell data

Quick Reference Cheat Sheet​

I want to...Do this
Create a square boardSet up a Board Data Asset with SquareGrid Creator + SquareGrid Converter
Create a triangle boardSet up a Board Data Asset with TriangleGrid Creator + TriangleGrid Converter
Place a piece on a cellIn GameSetup DataTable: set bUseBoardCell=true and BoardCell="col,row"
Get all cellsBoardSubsystem → GetCells()
Find a cell by IDBoardSubsystem → GetCellByID("3,4")
Find which cell is at a locationBoardSubsystem → GetCellByWorldPosition(WorldPos)
Get a cell's 3D positionBoardSubsystem → GetWorldPosition(Cell)
Check if two cells are connectedBoardSubsystem → AreCellsConnected(Cell1, Cell2)
Find neighbors of a cellBoardSubsystem → GetNeighbours(Cell)
Find a path between cellsBoardSubsystem → GetPath(Start, Goal, OutPath)
Get distance between cellsBoardSubsystem → GetDistance(Cell1, Cell2)
Add a flag to an edgeBoardSubsystem → AddEdgeFlag(Edge, FlagEnum)
Remove a flag from an edgeBoardSubsystem → RemoveEdgeFlag(Edge, FlagEnum)
Check if edge has a flagBoardSubsystem → HasEdgeFlag(Edge, FlagEnum)
Place a tile on the boardSubgraphComponent → ApplySubgraphToBoard(SnappedTransform)
Remove a tile from the boardSubgraphComponent → RemoveSubgraphFromBoard()
Check if tile position is validSubgraphComponent → IsValidPosition()
Check if board is ready nowBoardSubsystem → IsInitialized()
Wait for board to be readySubscribe to BoardSubsystem → OnBoardInitialized
Deploy pieces after boardCall GameMasterSubsystem → DeploySection("YourDeployKey")
Enable debug visualizationGo to Project Settings → Board Game Mechanics → Debug and toggle the visualization you need (Nodes, Edges, or Displacer Bounds). Only works in non-Shipping builds.