Board System for Game Designers
Audience: Game Designers
Last Updated: February 2026
Related Systems: GameElements, Notebook, Factory, Stage Management, TeamSpaces
Related:
TODO (from Notion): link pending.
Introduction
Glossary
| Term | What It Means |
|---|---|
| Cell | A single space on the board (a square, a rectangle, a triangle). Cells are the "positions" where pieces can be. |
| Edge | A connection between two cells. If two cells share an edge, pieces can potentially move between them. |
| Flag | A marker on an edge that describes its state (road, wall, blocked). Flags can be added and removed during play. |
| Board Graph | The invisible logical structure behind the board: all cells and their connections. |
| Board Subsystem | The central system you talk to for all board operations — queries, pathfinding, flags, everything. |
| Converter | Translates between board coordinates (cell "3,4") and world positions (where things actually are in 3D space). |
| Subgraph | A set of edges added by a tile when it's placed on the board. Think: puzzle piece connections. |
| Tile | An 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
| Game | Grid Type | Key Features |
|---|---|---|
| Hamlet | Triangular | Tiles (subgraphs), dynamic board building, edge flags |
| Chess / Checkers | Square (8x8) | Fixed grid, piece placement on cells |
Prerequisites
Before working with the Board System, you should understand:
| System | Why You Need It |
|---|---|
| GameElement System | Every board piece is a GameElement. The board itself is a GameElement. |
| Factory System | The board and its pieces are deployed (spawned) by the Factory during game setup. |
| Stage Management | The board deploys during the Deploy stage. Understanding the stage pipeline helps you know when things happen. |
| Notebook System | Tiles 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:
| Property | Value | Why |
|---|---|---|
| Board Builder Class | Your custom Blueprint builder (e.g., BP_014CHK_BoardBuilder) | Controls how the grid is created |
| Board To World Converter Class | SquareGrid | Maps grid coordinates to world positions |
| Converter Factor | 5.25 | Distance between cells in centimeters (1 Unreal unit = 1 cm) |
| Origin Offset | (see below) | Offset from the actor's pivot to where the grid starts |
| Cols | 8 | Number of columns |
| Rows | 8 | Number of rows |
| World Representation | Your 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".
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 Name | Type | Factory |
|---|---|---|
| Default | — | GameElementFactoryActor |
| Board | Board | GameElementFactoryBoard |
| Piece | Piece | GameElementFactoryActor |
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"):
| Row | GameElement | PlacementConfig | Notes |
|---|---|---|---|
| Board | "Board" | (default transform) | Spawns the board actor + builds graph |
Pieces setup (DeployKey = "Pieces", deployed separately):
| Row | GameElement | bUseBoardCell | BoardCell | Notes |
|---|---|---|---|---|
| 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
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 Type | Cell Shape | Cell IDs | Best For | Example |
|---|---|---|---|---|
| Square | Squares | "col,row" (e.g., "3,4") | Traditional boards: Chess, Checkers, Go | 8x8, configurable |
| Rectangle | Rectangles | "col,row" | Non-square grids with different row/column spacing | 10x8 with wide columns |
| Triangle | Equilateral triangles | "N_u_v" | Hex-like games, tile placement | Hamlet |
TODO — Image: Checkers and Hamlet boards
Configuration per Grid Type
Square / Rectangle Grid:
| Property | What It Does | Default |
|---|---|---|
| Cols | Number of columns | — |
| Rows | Number of rows | — |
| Factor | Distance between cells in cm (uniform for Square) | 100 |
| FactorCols | Column spacing in cm (Rectangle only) | 100 |
| FactorRows | Row spacing in cm (Rectangle only) | 100 |
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:
| Property | What It Does | Default |
|---|---|---|
| Target AABB Size | Bounding box to fill with triangles | — |
| Side Length | Triangle edge length in Unreal units | 100 |
| Pointy Top | Orientation: pointy-top vs flat-top | false |
| Grid Yaw Rotation Offset | Rotation in degrees | 0 |
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:
- The Surveyor (Creator) maps out all the lots → creates cells
- The Road Builder (Connector) lays roads between lots → creates edges
- 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
| Step | What Happens | You Configure |
|---|---|---|
| Prepare | Your Blueprint event. Register creators, connectors, and initializers here. | Override the Prepare event in your Builder Blueprint |
| Creators | Generate all cells with positions. A square creator makes an X×Y grid. | Which creator class + grid size |
| Connectors | Create edges between cells. Defines how cells connect (4-way, 8-way, diagonal). | Which connector class |
| Initializers | Run after cells and edges exist. Set up regions, assign properties, etc. | Custom initializer Blueprints |
Available Creators
| Creator | What It Creates |
|---|---|
| SquareGrid Creator | Grid of square cells. Configure Cols and Rows. |
| TriangleGrid Creator | Grid of triangular cells. Configure bounding size and triangle side length. |
Available Connectors
| Connector | Movement Pattern | Use Case |
|---|---|---|
| Square4 | North, South, East, West | Orthogonal movement only |
| Square8 | All 8 directions (including diagonals) | Orthogonal + diagonal movement |
| Crossed | Alternating diagonal pattern | Diagonals on every other cell, producing a staggered connection pattern |
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: 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:
| Field | What to Set |
|---|---|
| Board Builder Class | Your Blueprint that inherits from BoardBuilder |
| Board To World Converter Class | SquareGrid, 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:
- Phase 1: Spawn all elements that do NOT reference board cells (including the board itself)
- 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:
| Field | Value | What It Does |
|---|---|---|
| bUseBoardCell | Yes (checked) | Tells the Factory to place this piece on a board cell instead of a fixed position |
| BoardCell | e.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 Type | Format | Examples |
|---|---|---|
| Square / Rectangle | "col,row" | "0,0", "3,4", "7,7" |
| Triangle | "N_u_v" | "N_0_0", "N_2_5", "N_-1_3" |
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.
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
| Operation | How | Returns |
|---|---|---|
| Get all cells | BoardSubsystem → GetCells() | Array of all cells |
| Find cell by ID | BoardSubsystem → GetCellByID("3,4") | The cell at that ID |
| Find cell by position | BoardSubsystem → GetCellByPosition(Col, Row) | The cell at that grid position |
| Find cell at world location | BoardSubsystem → GetCellByWorldPosition(WorldVector) | The nearest cell to that 3D point |
| Get cell's world position | BoardSubsystem → GetWorldPosition(Cell) | Where this cell is in 3D space |
| Get cell's world transform | BoardSubsystem → GetWorldTransform(Cell) | Full position + rotation in 3D |
| Get all neighbors | BoardSubsystem → GetNeighbours(Cell) | All cells connected to this one |
| Check if connected | BoardSubsystem → 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: 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: 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):
| Setting | What It Does |
|---|---|
| Ignored Flags | Flags to skip when comparing (don't affect compatibility) |
| Compatibility Rules | Explicit pairs: "Flag1 + Flag2 = compatible" or "Flag1 + Flag3 = incompatible" |
| Default Incompatible | If no rule matches, assume incompatible (default: false = assume compatible) |
Exclusive Flag Groups
For cases where only one flag from a set should be active:
| Setting | Example |
|---|---|
| Exactly one required | Movement type: Walk OR Swim OR Fly (must pick one) |
| Allow none | Optional 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:
- The tile's local edges are projected onto the board grid
- Local vertex positions become real cell IDs
- New connections are added to the board graph
- 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
- Add a Subgraph Component to your tile actor
- Add vertex marker components (scene components) at each connection point
- 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 Field | What It Means |
|---|---|
| Component Ref Vertex 1 | First vertex marker (a scene component on your tile) |
| Component Ref Vertex 2 | Second vertex marker |
| Flags | Optional 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:
| Property | What It Tells You |
|---|---|
| Is Valid Position | True if tile can be placed here (not out of range AND edges compatible) |
| Out Of Range | True if tile is too far from the board to snap |
| Mismatch Edges | True 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:
| Event | When It Fires |
|---|---|
| OnSubgraphConnect | After the tile's edges are successfully connected to the board |
| OnSubgraphDisconnect | After 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.
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
| Event | When It Fires | Use For |
|---|---|---|
| OnGameElementInitialize | When the board's GameElement component initializes | Initial setup, binding delegates |
| OnBoardInitialized | When the board graph is fully built and ready | Placing slots, spawning pieces, starting game logic |
| OnDisplacementClampedOn | When board hits displacement bounds | UI feedback (advanced — code team) |
| OnDisplacementClampedOff | When board leaves displacement bounds | Remove 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
| Property | What It Does | Where to Set |
|---|---|---|
| Board Builder Class | Blueprint that orchestrates board creation | Data Asset |
| Board To World Converter Class | How grid coordinates map to world positions | Data Asset |
| Origin Offset | Offset from actor origin for the grid | Data Asset |
| Cols / Rows | Grid dimensions (square/rect grids) | Data Asset |
| Side Length | Triangle edge size (triangle grids) | Data Asset |
| Pointy Top | Triangle orientation (triangle grids) | Data Asset |
| World Representation | The visual actor players see | Data Asset |
| Debug Visualization | Enables debug drawing of nodes, edges, and displacer bounds | Project Settings → Board Game Mechanics → Debug |
Converter Settings
| Converter | Properties | Notes |
|---|---|---|
| SquareGrid | Factor (uniform spacing) | Same spacing on both axes |
| RectGrid | FactorCols, FactorRows | Different spacing per axis |
| TriangleGrid | SideLength, GridYawRotationOffset, PointyTop | Equilateral triangle geometry |
Subgraph Component Settings (for Tiles)
| Property | What It Does | Default |
|---|---|---|
| Edge Configurations | List of local edges (vertex pairs + flags) | Empty |
| Flag Evaluation Rules | Rules for checking edge flag compatibility | — |
| Max Distance To Snap | Maximum distance (in cm) for the tile to snap to the board | 75 |
| Check Edges | Enable edge flag compatibility validation | false |
| Debug | Show debug visualization of edges and vertices | false |
Factory Config Requirements
| Row Name | Type | Factory | Required? |
|---|---|---|---|
| Default | — | GameElementFactoryActor | Recommended (fallback) |
| Board | Board | GameElementFactoryBoard | YES — without this, the builder pipeline won't run |
| Piece | Piece | GameElementFactoryActor | If 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
| Row | Type | Factory |
|---|---|---|
| Default | — | GameElementFactoryActor |
Board spawns as a plain actor. No cells, no graph, nothing.
CORRECT: Add the Board row with the correct factory
| Row | Type | Factory |
|---|---|---|
| Default | — | GameElementFactoryActor |
| Board | Board | GameElementFactoryBoard |
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:
| Setting | What It Shows |
|---|---|
| Enable Board Node Debug | Green spheres at every cell's world position. Useful to verify that the grid aligns with your visual board mesh. |
| Enable Board Edge Debug | Colored lines connecting cells. The color changes based on edge flags, so you can visually confirm connections and flag states. |
| Enable Displacer Bounds Debug | Shows 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
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 | |
|---|---|
| Symptom | The board actor spawns but has no cells, no graph, board operations return empty data |
| Cause | Missing "Board" row in Factory Config DataTable, OR the row type doesn't match the element type in GameElement Index |
| Fix | Add 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 | |
|---|---|
| Symptom | Pieces appear at (0, 0, 0) or at the board actor's origin, not on their assigned cells |
| Cause | bUseBoardCell is checked but BoardCell has the wrong cell ID, OR the board isn't initialized when pieces spawn |
| Fix | Verify 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 | |
|---|---|
| Symptom | Tile hovers near the board but IsValidPosition() returns false |
| Cause A | Tile is too far from the board (exceeds MaxDistanceToSnap, default 75 units) |
| Cause B | Edge flag compatibility check fails — tile's flags don't match board's flags |
| Fix | Check 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 | |
|---|---|
| Symptom | You add a flag to an edge, but it's gone after removing a tile |
| Cause | Flags are reference-counted. If only one source added the flag, removing that source removes the flag. |
| Fix | This 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 | |
|---|---|
| Symptom | GetPath() returns false even though both cells exist |
| Cause A | The cells are not connected by edges (no road between them) |
| Cause B | The board has no connectors configured — cells exist but have zero edges |
| Cause C | A subgraph was disconnected, breaking the path |
| Fix | Check 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 | |
|---|---|
| Symptom | Client sees different cell positions, missing edges, or stale state |
| Cause | Board data hasn't replicated yet, or a race condition during initialization |
| Fix | Always 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
- Always use OnBoardInitialized — Never assume the board is ready. Subscribe to the delegate and wait.
- Use Deploy Keys for staged setup — Separate your board deployment from piece deployment using different keys (e.g., "StartUp" for board, "Pieces" for pieces).
- Use world-position queries for grid-agnostic code —
GetCellByWorldPosition()works with any grid type, unlike ID-based queries which depend on naming conventions. - Keep piece placement in DataTables — Use
bUseBoardCell+BoardCellin your GameSetup DataTable whenever possible. The two-phase deploy handles ordering automatically. - Test with debug visualization — Enable debug mode in your Board Data Asset to see cells, edges, and node IDs in the editor.
- One board per game — The current system supports one active board at a time per game. Multi-board support is reserved for future development.
- 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.
Related Systems
| System | How It Relates to Boards |
|---|---|
| GameElement System | Every board and piece is a GameElement with a unique ID for tracking |
| Factory System | Deploys the board and pieces; handles two-phase spawn ordering |
| Notebook System | Stores piece-cell relationships; tiles persist their connections here |
| Stage Management | Board deploys during the Deploy stage of the game lifecycle |
| TeamSpaces | Player areas on the board can be assigned per team |
| Persistence | Game saves include board state (edges, subgraphs, positions) — except per-cell data |
Quick Reference Cheat Sheet
| I want to... | Do this |
|---|---|
| Create a square board | Set up a Board Data Asset with SquareGrid Creator + SquareGrid Converter |
| Create a triangle board | Set up a Board Data Asset with TriangleGrid Creator + TriangleGrid Converter |
| Place a piece on a cell | In GameSetup DataTable: set bUseBoardCell=true and BoardCell="col,row" |
| Get all cells | BoardSubsystem → GetCells() |
| Find a cell by ID | BoardSubsystem → GetCellByID("3,4") |
| Find which cell is at a location | BoardSubsystem → GetCellByWorldPosition(WorldPos) |
| Get a cell's 3D position | BoardSubsystem → GetWorldPosition(Cell) |
| Check if two cells are connected | BoardSubsystem → AreCellsConnected(Cell1, Cell2) |
| Find neighbors of a cell | BoardSubsystem → GetNeighbours(Cell) |
| Find a path between cells | BoardSubsystem → GetPath(Start, Goal, OutPath) |
| Get distance between cells | BoardSubsystem → GetDistance(Cell1, Cell2) |
| Add a flag to an edge | BoardSubsystem → AddEdgeFlag(Edge, FlagEnum) |
| Remove a flag from an edge | BoardSubsystem → RemoveEdgeFlag(Edge, FlagEnum) |
| Check if edge has a flag | BoardSubsystem → HasEdgeFlag(Edge, FlagEnum) |
| Place a tile on the board | SubgraphComponent → ApplySubgraphToBoard(SnappedTransform) |
| Remove a tile from the board | SubgraphComponent → RemoveSubgraphFromBoard() |
| Check if tile position is valid | SubgraphComponent → IsValidPosition() |
| Check if board is ready now | BoardSubsystem → IsInitialized() |
| Wait for board to be ready | Subscribe to BoardSubsystem → OnBoardInitialized |
| Deploy pieces after board | Call GameMasterSubsystem → DeploySection("YourDeployKey") |
| Enable debug visualization | Go to Project Settings → Board Game Mechanics → Debug and toggle the visualization you need (Nodes, Edges, or Displacer Bounds). Only works in non-Shipping builds. |