GameElements for Game Designers [DRAFT]
Audience: Game Designers working in Unreal Editor
Last Updated: March 2026
Plugin: BoardGameMechanics (core) + AllOnBoard (extensions)
Related: Factory System (guide pending), Notebook System (guide pending), Team Spaces (guide pending)
Technical Guide:
TODO (from Notion): link pending.
๐ด DRAFT โ Pending User Input
This document was generated from C++ code analysis and existing internal documentation. To complete it, the following input is needed:
- Real Blueprint examples: Screenshots of card BPs, token pool configurations, floating tray setups, widget creator configs from real games
- Game manual context: Rulebook excerpts explaining why certain card visibility, token pool, or team space patterns are used
- Cross-system validation: Confirm how elements interact with Factory, Notebook, Lockable, and Croupier systems in practice
- Common workflows: Real scenarios for setting up cards with mirrors, token pools with counters, team space possession
- Edge cases & gotchas: Known issues with mirror card updates, distance LOD, token spawning, widget creator race conditions
Once this input is provided, run the documentation pipeline Phase 5 (Enrich with Real Implementations) to update this guide.
Purpose: This guide explains the building blocks of the Game Elements System (defined in the BoardGameMechanics plugin) and the concrete actor types built from them in AllOnBoard. It covers how to configure everything in Blueprints and how the pieces connect to other systems (Factory, Notebook, Lockable, Widget Creator).
Audience: Game Designers working in Unreal Editor
Prerequisites: Familiarity with Factory System Setup Guide (element registration and spawning)
Related: Technical Reference, Notebook System Guide, Team Spaces Guide
Part 1 โ Plugin Core (BoardGameMechanics)โ
The BoardGameMechanics plugin defines the building blocks of the Game Elements System. These are the interfaces, components, and contracts that every game element is built on. AllOnBoard actors (Part 2) are concrete implementations assembled from these blocks.
Overviewโ
The Game Elements System gives every board game object โ cards, tokens, team spaces, trays, dice โ a shared identity and data contract. This contract is defined in the BoardGameMechanics plugin through:
- An interface (
IGameElement) that establishes the rules every element must follow - A component (
UGameElementComponent) that implements those rules and provides networking, Notebook registration, and lifecycle events - A static variant (
UGameElementStaticComponent) used internally for player pawns that persist across game resets - A token supply interface (
ITokenSupplyInterface) and pool component (UTokenDelimitedPoolComp) for managing countable supplies of tokens
AllOnBoard then builds on these foundations with concrete actor types: cards with visibility and mirrors, tokens with pools and counters, floating trays, team spaces, and more (see Part 2).
Key principle: All game element actors MUST have a GameElementComponent (or its static variant) and MUST be registered in the Factory System's DT_GameElementIndex DataTable before they can be spawned. See the Factory System Setup Guide for registration steps.
What the full system provides (plugin core + AllOnBoard extensions combined):
| Category | What You Get |
|---|---|
| Identity (Plugin) | Unique IDs, lifecycle delegates, Notebook registration, replication |
| Token Supply (Plugin) | Add/remove contract, counted pools with Notebook sync |
| Cards (AOB) | Grabbable cards with visibility control, mirror copies, widget content, and distance LOD |
| Tokens (AOB) | Grabbable tokens with counter-driven pools that dispense and store tokens |
| Generic Elements (AOB) | Simple hoverable static meshes with identity and tooltip widgets |
| Floating Trays (AOB) | Grabbable trays that reset to their initial position (personal player areas) |
| Team Spaces (AOB) | Player team areas with activation and contextual actions |
| Widget Creators (AOB) | HUD tooltip widgets that appear when hovering/peeking game elements |
| Lock Indicators (AOB) | Visual feedback for the locking system (padlock animations, text progress) |
| Actions (AOB) | Contextual actions like Flip and Tray Reset |
| Post-Placement (AOB) | Automatic behaviors after factory spawn (e.g., auto-lock) |
The IGameElement Interface โ The Contractโ
The IGameElement interface (defined in GameElement.h in the BoardGameMechanics plugin) is the underlying contract that every participant in the game element system must fulfill. Think of it as the rulebook that says "if you want to be a game element, you must provide these things."
While you rarely interact with this interface directly in Blueprints, understanding its delegates is essential for building advanced logic that reacts to element lifecycle events.
What It Definesโ
Every game element that implements IGameElement guarantees:
- A unique numeric ID (Game Element ID, or GEID) โ assigned at runtime by the Factory
- A logical name โ matching the Factory DataTable row name
- An initialization status โ whether the element has received its ID and is ready
- A volatility flag โ whether the element should be excluded from save/load
- An update notification โ a way to tell observers that data has changed
Lifecycle Delegatesโ
The interface defines five lifecycle delegates. These are C++ delegates โ you cannot bind to them directly in Blueprint. Instead, use the Blueprint-assignable versions provided by GameElementComponent (see Blueprint Delegates section below).
| Delegate (C++ only) | Fires When |
|---|---|
OnGameElementInitializeDelegate | The element finishes initialization (ID assigned, Notebook registered). Provides the owning actor and whether it was restored from a saved game snapshot |
OnSetGameElementIDDelegate | The element's numeric ID is assigned or changes |
OnGameElementNameUpdateDelegate | The element's logical name (Factory row name) changes |
OnGameElementTypeUpdateDelegate | The element's Factory type key changes |
OnGameElementUpdateDelegate | Any observed data key on this element is updated in the Notebook. Provides the key name that changed |
For Blueprint users: Bind to the BP_ delegate variants on GameElementComponent instead (e.g., BP_OnGameElementInitializeDelegate).
How It Connects to Everything Elseโ
The IGameElement interface is the glue between an actor and the rest of the platform. Systems like Factory, Notebook, Persistence, and Element Finder all talk to game elements through this interface. They do not need to know whether the element is a card, a token, or a tray โ they only need it to implement IGameElement.
The UGameElementComponent (next section) is the standard implementation of this interface that you attach to actors.
UGameElementComponent โ Identity for Every Objectโ
UGameElementComponent is the standard implementation of the IGameElement interface. It is an actor component that you attach to any actor to make it a participant in the game element system.
This is the bridge between an actor and all the platform systems: Factory, Notebook, networking, persistence, and element queries.
This is the component you will use. For any game element you create (cards, tokens, boards, trays, custom pieces), add a GameElementComponent. The pre-built actor classes (like AOBCardBaseActor or AOBTokenActor) already include it, but if you build a custom element from scratch, this is the component to add.
What It Doesโ
- Assigns a unique Game Element ID (GEID) at runtime for networking and persistence
- Stores the GameElementName (matching the Factory DataTable row name) and GameElementType (the Factory type key)
- Registers the element with the Notebook for data storage (counters, team assignment, etc.)
- Replicates all identity data to all clients automatically via a single replicated data bundle
- Fires delegates when the element is initialized or when Notebook data changes
- Handles the full lifecycle: server-side Factory assignment, client-side replication callbacks, and cleanup on destruction
Setup in Blueprintโ
- Open your actor Blueprint.
- Click + Add Component and search for GameElementComponent.
- Add it to the actor. No additional configuration is needed โ the Factory System handles ID assignment at spawn time.
Configuration Propertiesโ
| Property | Default | Description |
|---|---|---|
bSelfRegister | false | When enabled, the element automatically requests a Game Element ID from the Factory during BeginPlay (server only). Use this for elements placed directly in the level that are not spawned by the Factory pipeline (e.g., player pawns, permanent board pieces). |
bAnnotable | true | Only relevant when bSelfRegister is enabled. When true, the element is also registered as annotable in the Notebook (players can attach notes to it). |
bVolatile | false | Marks the element as volatile โ it will NOT be saved by the persistence system. Use for temporary markers, preview objects, or transient effects. Can be changed at runtime via SetVolatile(bool). |
bCreatedFromSnapshot | false | Read-only flag indicating the element was restored from a saved game rather than freshly spawned. Check via IsCreatedFromSnapshot(). Useful when you need different initialization logic for restored elements. |
Blueprint APIโ
| Function | Description |
|---|---|
GetGameElementID() | Returns the unique numeric identifier (GEID) for this element. Returns -1 if not yet assigned. |
GetGameElementName() | Returns the logical name used by the Factory to identify this element (matches a row in the GameElementIndex DataTable). |
GetGameElementType() | Returns the Factory type key assigned to this element (e.g., "Card", "Token", "Board"). |
IsInitialized() | Returns whether this element has completed initialization (ID assigned, delegates fired). |
IsCreatedFromSnapshot() | Returns whether this element was restored from a saved game snapshot. |
IsVolatile() | Returns whether this element is volatile (excluded from save/load persistence). |
SetVolatile(bool) | Marks the element as volatile (excluded from save/load) or persistent. |
ForceRegisterToNotebook() | Server-only. Forces re-registration of the element with the Notebook subsystem on all clients. |
Blueprint Delegatesโ
These Blueprint-assignable delegates mirror the IGameElement lifecycle delegates:
| Delegate | Fires When |
|---|---|
BP_OnGameElementInitializeDelegate | The element finishes initialization |
BP_OnGameElementUpdateDelegate | Any observed Notebook data key on this element changes |
BP_OnGameElementNameUpdateDelegate | The element's logical name changes |
BP_OnGameElementTypeUpdateDelegate | The element's Factory type key changes |
Replicated Data Bundleโ
All identity data is packed into a single replicated struct (FGameElementCompData) containing the GEID, name, type, snapshot flag, and volatility flag. This replicates as one unit to minimize network overhead.
Important: You do NOT need to manually set the GameElementName or GameElementID in the Blueprint. The Factory System sets these automatically when the element is spawned.
GameElementStaticComponent (Internal)โ
You do not need to use this component. GameElementStaticComponent is an internal variant of GameElementComponent used exclusively by the platform for player pawns. It ensures the pawn actor survives game resets (switching between board games) by using a separate ID range that is never cleared. Always use the regular GameElementComponent for your game elements.
ITokenSupplyInterface โ Token Supply Contractโ
The ITokenSupplyInterface (defined in TokenSupplyInterface.h in the BoardGameMechanics plugin) is a simple interface that defines the contract for any object that can supply and receive tokens.
What It Definesโ
| Operation | Description |
|---|---|
| Add Tokens | Accepts a token (by GameElementName) and a quantity to add to the supply |
| Remove Tokens | Removes a given quantity of tokens from the supply and returns which tokens were removed (as an array of names) |
The interface also defines a standard Notebook key (StoredTokensKey, value "StoredTokens") used to persist the token list in the Notebook subsystem.
Why It Mattersโ
This interface decouples token management from any specific actor type. A token pool actor, a player inventory, or any other container can implement ITokenSupplyInterface, and the rest of the system (Croupier, game rules, persistence) can add and remove tokens without caring about the specific implementation.
UTokenDelimitedPoolComp โ Counting and Dispensing Tokensโ
UTokenDelimitedPoolComp is a component that implements the ITokenSupplyInterface. It manages a counted pool of tokens using a map of token names to quantities.
What It Doesโ
- Maintains a
TokensMapโ a map from token GameElementName to quantity - Implements
AddTokensandRemoveTokensfrom theITokenSupplyInterface - Syncs stored token data with the Notebook subsystem
- Optionally shuffles the token order at the start of the game
- Fires delegates when tokens are added or removed
Configurationโ
| Property | Category | Description |
|---|---|---|
TokensMap | Counters | The initial supply โ map each token GameElementName to the number of copies available. |
bShuffleAtStart | Counters | When enabled, the order of tokens in the pool is randomized at BeginPlay |
How It Connects to AllOnBoardโ
In AllOnBoard, the AAOBTokenDelimitedPoolActor wraps this component into a full actor with a visual mesh, VR interactions, a floating counter display, and audio feedback.
Part 2 โ AllOnBoard Extensionsโ
AllOnBoard builds on the plugin core from Part 1 to create the concrete actors and components that Game Designers work with. Every actor in this section includes a GameElementComponent (from the plugin) and adds VR interaction, visual feedback, audio, and game-specific behavior.
Cardsโ
Cards are the most feature-rich element type. AllOnBoard provides three actor classes for different card use cases, plus a mirror slot display component.
AAOBCardBaseActor โ Standard Cardโ
The foundational card actor. Use this as the base class for any card Blueprint.
Parent class: ACardBaseActor (from BoardGameMechanics plugin)
Built-in components (created automatically in C++):
| Component | Source | Purpose |
|---|---|---|
| GameElementComponent | Plugin | Identity and Notebook registration |
| HighlightComponent | AOB Framework | Visual glow on hover |
| SlottableComponent | AOB Framework | Snap into slots (decks, hand of cards, board slots) |
| ActionsComponent | AOB Framework | Contextual actions (flip, shuffle, etc.) |
| TelltaleComponent | AOB Framework | Overlap detection for board placement |
| GEWidgetCreatorComp | AOB | HUD tooltip on hover/peek |
| MirrorGEWidgetComp | AOB | Mirror widget support |
| OrphanComponent | AOB | Recovery tracking for lost elements |
| CollisionSoundComponent | AOB | Audio on collision |
| NetworkInterpolationComponent | AOB Framework | Smooth networked movement |
| MirrorStaticMeshComponent | AOB | Mirror mesh shown to other players |
Visibility Control ("face up / face down")โ
Card visibility decides who sees the card's face. When a card is hidden for a player, that player's client shows the back material on the card mesh (and on the mirror mesh); the actor is not rotated and not hidden. This is what the project calls "face up" / "face down" โ it is a per-client visibility rule, not a physical flip (for physical rotation see UAOBAction_Flip under Actions).
Visibility modes (ECardVisibility):
| Value | Who sees the face |
|---|---|
Visible to All | Everyone (default) |
Only Owner | Only players of the card's team. Only enforced while the card is grabbed or while the visibility is forced (see below); an unforced Only Owner card lying on the table shows its face to everyone |
Hidden | Nobody |
Two layers, both replicated:
- Base visibility (
CardVisibility): set in the card Blueprint defaults (AOB|Card|Config) or at runtime withSetCardVisibility. This is the card's own rule. - Forced visibility (
SetForcedCardVisibility/ClearForcedCardVisibility): an override applied by the container the card is in (deck, slot, hand of cards, player area) or by game logic. While forced, the base value is ignored. The card clears its own forced visibility when it is released after a grab, so a forced state lasts until a player picks the card up and drops it; the new container (if any) then applies its own forcing.
Team check: the card's team is the Notebook TeamKey of its GameElement. It is written automatically on grab (SetCardTeamID with the grabber's team). For cards placed by the deploy without a grab, write the team yourself or Only Owner resolves as "not mine" for every player.
Where forcing comes from (configure these instead of scripting visibility by hand):
| Container | Properties | Behaviour |
|---|---|---|
Deck (AAOBDeckBaseActor, ADeckSupplierActor) | bOverrideSpawnedCardVisibility โข SpawnedCardVisibility (base); bForceCardVisibility โข ForcedCardVisibility (forced, default Hidden) | Applied to every card drawn from the deck |
Card slot (UAOBCardSlotComponent) | bForceSlottedCardsVisibility โข ForcedCardsVisibility (default Only Owner) | Forced when the card enters the slot, cleared when it leaves |
| Hand of Cards | conceal state | Forces Only Owner while the hand is concealed, Visible to All when revealed |
| Floating Player Area | blocked state | Forces Only Owner while blocked |
Flip action: BP_000AOB_Action_CardFlip (Content/AOB/BoardGames/000AOB/Cards/) is a contextual action that toggles the base visibility between Visible to All and its Card Visibility On Facing Up setting. When you add it to a card's ActionsComponent, check Always Visible on the action entry: a hidden card hides its whole Smart Glance action panel except Always Visible actions, so without the flag the player cannot flip the card back. While the card is forced by a container the toggle has no visible effect.
Refreshing: TryUpdateVisibilityBasedOnOwner() re-evaluates the card locally. Call it after changing the card's team by hand. Setters already call it.
Mirror Systemโ
When a card is in a deck or slot visible to other players, a mirror mesh shows a simplified representation (typically the card back). The mirror system handles showing/hiding the mirror mesh based on card state and displacing it on hover.
Audioโ
| Property | Default | When It Plays |
|---|---|---|
SoundOnGrabStarted | "None" | Player starts grabbing the card |
SoundOnGrabEnded | "CardGrabbed" | Player finishes grabbing |
SoundOnSlottedStarted | "None" | Card starts snapping to a slot |
SoundOnSlottedTravelEnded | "CardSnapped" | Card finishes traveling to slot |
SoundOnSlottedEnded | "None" | Card fully settled in slot |
Delegatesโ
| Delegate | Fires When |
|---|---|
OnCardMaterialChangedDelegate | The card's material changes (e.g., face-up to face-down) |
OnCardHiddenDelegate | The card's hidden/visible state changes. Provides bNewHidden boolean |
Both delegates are BlueprintAssignable. Additionally, BP_OnCardHidden(bNewHidden) is a BlueprintNativeEvent you can override.
Blueprint APIโ
| Function | Description |
|---|---|
SetCardVisibility(ECardVisibility) | Sets the replicated base visibility (Server RPC) |
GetCardVisibility() | Returns the base visibility. Not the resolved state โ use IsVisible() to know what the local player sees |
SetForcedCardVisibility(ECardVisibility) | Sets the replicated forced visibility and turns forcing on (Server RPC) |
ClearForcedCardVisibility() | Turns forcing off; the base visibility applies again (Server RPC). Called automatically when the card is released |
TryUpdateVisibilityBasedOnOwner() | Re-evaluates card visibility locally after team/ownership changes |
GetAttachedHandOfCards() | Returns the hand-of-cards actor this card belongs to, or null |
SetCardTeamID(NewTeamID) | Assigns the card to a team (Notebook TeamKey). Essential for Only Owner โ the card's team determines which players can see its face. Written automatically on grab |
TriggerSoundAtCardLocation(SoundEvent) | Plays a named sound event at the card's world position |
DisplaceMirrorMesh() / UnDisplaceMirrorMesh() | Offsets or restores the mirror mesh visual effect |
AAOBCardWidgetActor โ Card with Widget Contentโ
Extends AAOBCardBaseActor with a 3D widget component for rich card content (images, text, icons) and a distance-based LOD system.
When to use: When card content is dynamic or complex (e.g., card text in multiple languages, counters on the card face).
| Property | Category | Description |
|---|---|---|
MaterialDistanceParameter | โ | Material parameter name that controls the LOD switch |
TextDistanceValue | Widget | Distance threshold for the LOD switch |
bDistanceFilterActive | Debug | Toggle the distance filter on/off for testing |
Language support: When the game language changes, BP_OnLanguageChanged fires as a BlueprintImplementableEvent.
AAOBMirrorCardBaseActor โ Read-Only Mirror Copyโ
A local-only visual representation of a card. Does NOT have a GameElementComponent โ it is not a replicated game element.
Creating a Mirror Card Blueprint:
- Create a new Blueprint based on
AAOBMirrorCardBaseActor. - Set up the
CardStaticMeshCompwith the card mesh. - Configure the
WidgetCardwidget component with the card content display. - Implement
BP_OnCardInfoChanged(UCardDataAsset*)to update the visual when card data changes. - Reference this Blueprint class in
UAOBMirrorCardsSlotDisplayComponent::MirrorCardBaseActorClass.
UAOBMirrorCardsSlotDisplayComponent โ Auto-Mirror Slot Contentsโ
A scene component that automatically creates and manages mirror card actors to display the contents of a slot.
Setup:
- Add
UAOBMirrorCardsSlotDisplayComponentto your Blueprint. - Configure in the Details panel:
| Property | Category | Description |
|---|---|---|
AnchorActorSlotID | Settings | FName identifying which anchor actor's slot to mirror |
SlotComponentName | Settings | Component reference to the specific slot component |
MirrorCardBaseActorClass | Settings | The mirror card Blueprint class to spawn |
- At runtime, call
FindMirroredSlotComponentByAnchorID(TeamID)orFindMirroredSlotComponentByFloatingPlayerArea(FloatingGameElementID)to bind.
Tokensโ
AAOBTokenActor โ Grabbable Tokenโ
A grabbable static mesh actor representing a board game token or piece. Includes GrabbableVRComponent, GameElementComponent, AOBTokenComponent, HighlightComponent, GEWidgetCreatorComp, and SlottableComponent.
UAOBTokenComponent โ Token Logicโ
- Stored tokens: A token can "contain" other tokens (stored as FName references).
- Counter sync: The component listens to Notebook data updates and keeps an internal counter value in sync.
- Pool interaction: When stored back into a pool,
OnTokenStoredOnPoolDelegatefires.
AAOBTokenDelimitedPoolActor โ Token Pool/Dispenserโ
A pool actor that dispenses and stores tokens based on counter values from the Notebook.
When to use: Whenever a game has a limited supply of tokens (e.g., resource pools, health markers).
Plugin foundation: This actor wraps UTokenDelimitedPoolComp with a full VR-ready experience. The component provides the counting and supply logic; this actor provides the visuals, interactions, and audio.
How it works:
- The pool reads counter values from the Notebook (via
RefreshPoolBasedOnCurrentValue). - When a player activates the pool,
SpawnTokens()is called (Server RPC). - When a player drops a token into the pool's slot,
StoreTokens()is called. CanTokenBeStored(FName)validates whether a specific token type can be returned.- The
FloatingDisplayComponentshows the current count above the pool.
Croupier integration: The pool implements ICroupierSupplierInterface, allowing the Croupier system to automatically dispense tokens.
UAOBTokenNetComponent โ Server-Authoritative Token Spawningโ
Note: You do not typically need to configure this component directly. It is part of the internal networking flow of token pools.
Generic Interactable Elementsโ
AAOBGameElementInteractableActorโ
A simple static mesh actor with game element identity and basic interactability.
When to use: Score markers, decorative pieces, zone indicators, award displays, or any element that only needs hover highlighting and a tooltip widget.
Built-in components: GameElementComponent, HighlightComponent, GEWidgetCreatorComp, FloatingDisplayComponent.
Floating Traysโ
AAOBFloatingTray โ Personal Player Areaโ
A grabbable tray that can be moved by players in VR and smoothly returns to its initial position.
Reset mechanism: The tray captures its position at BeginPlay as the InitialPosition. When the "Reset" action is triggered:
Server_ResetPosition()RPC is sent to the server.- Server forwards to
Client_ResetPosition(). - The tray smoothly lerps back to
InitialPositionatLerpVelocityspeed.
| Property | Default | Description |
|---|---|---|
LerpVelocity | 1.5 | Speed of the reset lerp (higher = faster return) |
UAction_FloatingTrayRestart โ Reset Actionโ
A contextual action that triggers the tray's position reset. Automatically attached to the tray's ActionsComponent.
Team Spacesโ
AAOBTeamSpaceActorโ
Extends ATeamSpaceActor (from BoardGameMechanics plugin) with activation support and contextual actions.
Key behaviors:
- Activation: Supports the
IActivableInterface. - Message broadcasting: Listens for broadcast messages via
OnMessageBroadcast(FName Event). - Possession:
PossesTeamSpace(FActionData)assigns a player to this team space.
Widget Creator System (HUD Tooltips)โ
UGEWidgetCreatorComp โ Core Widget Creatorโ
How it works:
- When a player hovers over an element, the VR interaction system asks the component for its HUD widgets.
- The component creates a Primary Widget (name, description) and optionally a Secondary Widget (actions, counters).
- Widgets are cached and reused until explicitly cleared.
Configuration:
| Property | Default | Description |
|---|---|---|
PrimaryCustomWidgetClass | null | Custom UMG widget class to embed inside the primary tooltip |
PrimaryInternalWidgetClass | null | Override the entire primary widget class (advanced) |
SecondaryWidgetClass | null | Override the secondary widget class (advanced) |
SecondaryWidgetOffset | 550.0 | Vertical distance between primary and secondary widgets |
UCustomWidgetCreatorComp โ External Data Sourceโ
Extends UGEWidgetCreatorComp. Allows the widget to pull data from a different GameElementComponent than the one on its own actor.
When to use: On AAOBMirrorCardBaseActor, which does not have its own GameElementComponent.
UDeckWidgetCreatorComp โ Deck Tooltipsโ
Extends UGEWidgetCreatorComp. Specialized for deck actors โ adds a card preview widget alongside the standard tooltip.
Widget Classesโ
Both UGEPrimaryWidget and UGESecondaryWidget implement IGEWidgetCreatorInterface, which defines the data population contract.
IGEWidgetCreatorInterface methods (all are BlueprintNativeEvent):
| Method | Description |
|---|---|
SetCustomWidget(CustomWidget) | Injects a custom sub-widget into the display area |
SetCardWidget(CardWidget, ControllerHand, bHidePrimaryWidget) | Injects a card-specific widget |
SetContent(Name, Description) | Sets the display name and description text |
SetDataAsset(GameElementDataAsset) | Sets the data asset for data-driven widget content |
SetIsHidden(bIsHidden) | Sets the hidden state of the widget |
SetActions(ActionsComponent) | Provides the actions component for rendering action buttons |
SetCounters(GameElementComponent, CountersMap) | Provides counter data for rendering counter value widgets |
Lockable Indicators (Visual Feedback)โ
Full lockable system documentation: See the dedicated Lockable Game Elements guide for setup steps, strategies, and troubleshooting.
ULockIndicatorWidgetComponent โ Padlock Animationโ
Setup:
- Ensure the actor has a
ULockableActorComponent. - Add
ULockIndicatorWidgetComponentto the same actor. - The component automatically binds to lock events on
BeginPlay.
ULockIndicatorWidget โ The UMG Widgetโ
Contains Image_PadlockOpen and Image_PadlockClose bound images. PlayLockAnim and PlayUnlockAnim are BlueprintImplementableEvent.
UTextRenderLockIndicator โ Text-Based Feedbackโ
A simpler alternative using UTextRenderComponent. Useful for prototyping.
| Property | Default | Description |
|---|---|---|
StartText | "Locking Started" | Shown when locking begins |
StopText | "Locked" | Shown when locking completes |
ProgressUpdateText | "Locking..." | Shown during progress (appended with percentage) |
Actionsโ
UAOBAction_Flip โ Flip Elementโ
A contextual action that rotates a game element 180 degrees around configurable axes.
| Property | Category | Default | Description |
|---|---|---|---|
bX | Flip/Axis | false | Flip around X axis (pitch) |
bY | Flip/Axis | false | Flip around Y axis (roll) |
bZ | Flip/Axis | true | Flip around Z axis (yaw) |
Common configurations:
- Flip card face-down/up:
bX = false, bY = true, bZ = false - Rotate 180 on table:
bX = false, bY = false, bZ = true
UAction_FloatingTrayRestart โ Reset Tray Positionโ
Resets a floating tray to its initial spawn position.
Post-Placement Strategiesโ
UPostPlacementStrategyLock โ Auto-Lock on Spawnโ
Locks the element immediately after it is placed, preventing players from grabbing or moving it.
When to use: Board elements that should never move, score tracks, permanent decorations.
Note: This requires the actor to have a ULockableActorComponent. If the actor does not have one, the strategy has no effect.
Factory Proxy: UGameElementProxyComponent_AttachToSlotโ
When setting up composite elements, use UGameElementProxyComponent_AttachToSlot. Add this component to the parent actor Blueprint, set its GameElementName to the child element's Factory name, and set AttachingSlotTag to match the component tag on the target slot.
Interfaces and Utilitiesโ
IAOBGameElementInterfaceโ
Provides the IsVisible() query for per-player visibility. Implemented by cards.
UAOBGameElementsUtilitiesLibraryโ
| Function | Description |
|---|---|
IsGameElementOfMyTeam(WorldContextObject, GameElementID) | Returns true if the game element belongs to the local player's team |
Common Workflowsโ
Adding a New Card to a Gameโ
- Create a Blueprint based on
AAOBCardBaseActor(orAAOBCardWidgetActorfor widget content). - Set up the card mesh, materials, and widget content.
- Configure audio events in the Audio category (optional).
- Create a
GEDA_data asset pointing to the Blueprint. - Register in
DT_GameElementIndexwith Type = Card. - Ensure the FactoryConfig maps Card to
AOBGameElementFactoryCard. - Add a GameSetup row (or handle spawning via deck/deal logic).
Adding a Token Poolโ
- Create a token actor Blueprint based on
AAOBTokenActor. - Create a pool actor Blueprint based on
AAOBTokenDelimitedPoolActor. - Set the pool's
PoolStaticMesh(container visual) andTokenStaticMesh(token preview). - Configure
PlacementConfigon the pool for how tokens spawn. - Set
TokenSpawnSound/TokenDeletedSoundfor audio feedback. - Create
GEDA_data assets for both the token and the pool. - Register both in
DT_GameElementIndex. - Add the pool to the GameSetup DataTable.
Setting Up a Floating Player Trayโ
- Create a Blueprint based on
AAOBFloatingTray. - Set the
GrabbableMeshto your tray mesh. - Add any child slot components for cards/tokens.
- Adjust
LerpVelocityfor the reset speed (default 1.5). - The
Action_FloatingTrayRestartaction is included via the ActionsComponent. - Register and spawn via the Factory System.
Adding HUD Tooltip Customizationโ
- The
GEWidgetCreatorCompis already on most game element actors. - To add a custom widget, create a UMG widget Blueprint and assign it to
PrimaryCustomWidgetClass. - To replace the entire primary widget, assign
PrimaryInternalWidgetClass. - To show counters, ensure the Notebook data has counter entries.
Making an Element Auto-Lock on Spawnโ
- Add a
ULockableActorComponentto the element Blueprint. - Configure the Lock Duration and strategies on the component.
- In the GameSetup DataTable row, add
UPostPlacementStrategyLocktoPostPlacementStrategies. - Optionally add a
ULockIndicatorWidgetComponentfor visual feedback.
Adding Lock Visual Feedbackโ
- Ensure the actor has a
ULockableActorComponent. - Add
ULockIndicatorWidgetComponentfor padlock animation feedback. - OR add
UTextRenderLockIndicatorfor simple text feedback. - The component auto-binds to lock events โ no additional wiring needed.
Showing Mirror Cards for a Slotโ
- Create a mirror card Blueprint based on
AAOBMirrorCardBaseActor. - Implement
BP_OnCardInfoChangedto display card data. - Add
UAOBMirrorCardsSlotDisplayComponentto the actor that should show the mirrors. - Set
MirrorCardBaseActorClassto your mirror card Blueprint. - Set
AnchorActorSlotIDandSlotComponentNameto identify the source slot. - At runtime, call
FindMirroredSlotComponentByAnchorID(TeamID)to bind.
Troubleshootingโ
Card not visible to owning playerโ
- Check whether a container is forcing the visibility (deck
bForceCardVisibility, slotbForceSlottedCardsVisibility, concealed hand, blocked player area). ForcedHiddenhides the card from everyone, including the owner. - Verify the card's team (Notebook
TeamKey) matches the local player's team. Cards placed without a grab have no team until something writes it. - Check that
TryUpdateVisibilityBasedOnOwner()is called after a manual team assignment.
Card face is visible to opponents although it is "Only Owner"โ
- Unforced
Only Owneronly hides the face while the card is grabbed. To keep it private at rest, force the visibility from the slot or player area the card sits in.
Flip action disappears once the card is face downโ
- The action entry in
ActionsComponentmust haveAlways Visiblechecked. A hidden card hides every other Smart Glance action.
Token pool not dispensingโ
- Verify the pool has a valid
TokenDelimitedPoolCompwith correct min/max values. - Verify the pool's
PlacementConfigis configured (tokens need a spawn position). - Check that the token Blueprint has a
GameElementComponentand is registered in the Factory index.
HUD tooltip not appearingโ
- Verify the actor has a
GEWidgetCreatorComp. - Verify the actor implements
IInteractableInterface(hover events trigger widget creation). - Check that the
GEDA_data asset has a validInfoDataAsset.
Lock indicator not respondingโ
- Verify both
ULockableActorComponentand the indicator component are on the same actor. - Verify the
LockableActorComponenthas bothLock Activation StrategyandLockable Strategyassigned. - Verify
Lock Durationis greater than 0.
Mirror cards not syncingโ
- Verify
UAOBMirrorCardsSlotDisplayComponenthasMirrorCardBaseActorClassset. - Verify
AnchorActorSlotIDandSlotComponentNamematch the source slot. - Call
RefreshCardsDisplay()to force a full rebuild.
Floating tray not resettingโ
- Verify the tray's
ActionsComponentincludesUAction_FloatingTrayRestart. - Check that
InitialPositionwas captured correctly atBeginPlay.
Quick Referenceโ
Architecture: Plugin Core vs AllOnBoard Extensionsโ
| Layer | What It Provides | Examples |
|---|---|---|
| BoardGameMechanics Plugin | Interfaces, base components, contracts | IGameElement, UGameElementComponent, ITokenSupplyInterface, UTokenDelimitedPoolComp |
| AllOnBoard Project | Concrete actors, VR interaction, visuals, audio | All AAOB* actors, UAOB* components, widget creators, lock indicators, actions |
Actor Type Selectionโ
| I need... | Use this actor class |
|---|---|
| A card that can be grabbed, slotted, flipped | AAOBCardBaseActor |
| A card with dynamic widget content (text, images) | AAOBCardWidgetActor |
| A read-only copy of a card for display | AAOBMirrorCardBaseActor |
| A grabbable game piece/token | AAOBTokenActor |
| A pool that dispenses/stores tokens | AAOBTokenDelimitedPoolActor |
| A simple hoverable element with a tooltip | AAOBGameElementInteractableActor |
| A moveable personal player area | AAOBFloatingTray |
| A team's play area with anchors | AAOBTeamSpaceActor |
Inheritance Mapโ
--- Plugin Core (BoardGameMechanics) ---
IGameElement (interface โ the contract)
+-- UGameElementComponent (standard implementation)
+-- UGameElementStaticComponent (internal โ player pawns only)
ITokenSupplyInterface (interface โ token supply contract)
+-- UTokenDelimitedPoolComp (counted pool implementation)
ACardBaseActor (base card actor)
ATeamSpaceActor (base team space actor)
--- AllOnBoard Extensions ---
ACardBaseActor (Plugin)
+-- AAOBCardBaseActor
+-- AAOBCardWidgetActor (widget content + LOD)
AStaticMeshActor (Engine)
+-- AAOBTokenActor (grabbable token)
+-- AAOBGameElementInteractableActor (simple hoverable element)
AActor (Engine)
+-- AAOBFloatingTray (grabbable tray with reset)
+-- AAOBTokenDelimitedPoolActor (token pool/dispenser)
+-- AAOBMirrorCardBaseActor (read-only mirror card, NO GameElement)
ATeamSpaceActor (Plugin)
+-- AAOBTeamSpaceActor (with actions + activation)
UGEWidgetCreatorComp (AOB)
+-- UCustomWidgetCreatorComp (external data source)
+-- UDeckWidgetCreatorComp (deck card preview)
Glossaryโ
| Term | Definition |
|---|---|
| GEID | Game Element ID โ unique runtime integer assigned to each spawned element |
| GameElementName | FName identifier matching a row in the Factory's DT_GameElementIndex |
| GEDA | Game Element Data Asset โ the GEDA_-prefixed data asset bridging a name to an actor Blueprint |
| Mirror | A local-only visual copy of an element shown to other players (e.g., card back) |
| Notebook | The data binding system where each element stores runtime key-value data (counters, team, visibility) |
| Smart Glance | The VR contextual actions menu shown when looking at a game element |
| Slot | A USlotComponent that accepts slottable actors (cards, tokens) with snap behavior |
| Telltale | Overlap detection system used to determine if an element is "on" the board |
| Post-Placement Strategy | Modular behavior executed after an element is spawned by the Factory |
| Distance Filter / LOD | Automatic quality reduction for far-away widget cards to save performance |
| Lockable | An actor with ULockableActorComponent that can go through a timed locking process |