Skip to main content

GameElements for Game Designers [DRAFT]

info

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.

warning

๐Ÿ”ด 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.

info

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):

CategoryWhat 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
OnGameElementInitializeDelegateThe element finishes initialization (ID assigned, Notebook registered). Provides the owning actor and whether it was restored from a saved game snapshot
OnSetGameElementIDDelegateThe element's numeric ID is assigned or changes
OnGameElementNameUpdateDelegateThe element's logical name (Factory row name) changes
OnGameElementTypeUpdateDelegateThe element's Factory type key changes
OnGameElementUpdateDelegateAny observed data key on this element is updated in the Notebook. Provides the key name that changed
info

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.

tip

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โ€‹

  1. Open your actor Blueprint.
  2. Click + Add Component and search for GameElementComponent.
  3. Add it to the actor. No additional configuration is needed โ€” the Factory System handles ID assignment at spawn time.

Configuration Propertiesโ€‹

PropertyDefaultDescription
bSelfRegisterfalseWhen 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).
bAnnotabletrueOnly relevant when bSelfRegister is enabled. When true, the element is also registered as annotable in the Notebook (players can attach notes to it).
bVolatilefalseMarks 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).
bCreatedFromSnapshotfalseRead-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โ€‹

FunctionDescription
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:

DelegateFires When
BP_OnGameElementInitializeDelegateThe element finishes initialization
BP_OnGameElementUpdateDelegateAny observed Notebook data key on this element changes
BP_OnGameElementNameUpdateDelegateThe element's logical name changes
BP_OnGameElementTypeUpdateDelegateThe 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.

warning

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)โ€‹

warning

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โ€‹

OperationDescription
Add TokensAccepts a token (by GameElementName) and a quantity to add to the supply
Remove TokensRemoves 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 AddTokens and RemoveTokens from the ITokenSupplyInterface
  • 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โ€‹

PropertyCategoryDescription
TokensMapCountersThe initial supply โ€” map each token GameElementName to the number of copies available.
bShuffleAtStartCountersWhen 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++):

ComponentSourcePurpose
GameElementComponentPluginIdentity and Notebook registration
HighlightComponentAOB FrameworkVisual glow on hover
SlottableComponentAOB FrameworkSnap into slots (decks, hand of cards, board slots)
ActionsComponentAOB FrameworkContextual actions (flip, shuffle, etc.)
TelltaleComponentAOB FrameworkOverlap detection for board placement
GEWidgetCreatorCompAOBHUD tooltip on hover/peek
MirrorGEWidgetCompAOBMirror widget support
OrphanComponentAOBRecovery tracking for lost elements
CollisionSoundComponentAOBAudio on collision
NetworkInterpolationComponentAOB FrameworkSmooth networked movement
MirrorStaticMeshComponentAOBMirror 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):

ValueWho sees the face
Visible to AllEveryone (default)
Only OwnerOnly 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
HiddenNobody

Two layers, both replicated:

  • Base visibility (CardVisibility): set in the card Blueprint defaults (AOB|Card|Config) or at runtime with SetCardVisibility. 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):

ContainerPropertiesBehaviour
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 Cardsconceal stateForces Only Owner while the hand is concealed, Visible to All when revealed
Floating Player Areablocked stateForces Only Owner while blocked
warning

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โ€‹
PropertyDefaultWhen 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โ€‹
DelegateFires When
OnCardMaterialChangedDelegateThe card's material changes (e.g., face-up to face-down)
OnCardHiddenDelegateThe 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โ€‹
FunctionDescription
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).

PropertyCategoryDescription
MaterialDistanceParameterโ€”Material parameter name that controls the LOD switch
TextDistanceValueWidgetDistance threshold for the LOD switch
bDistanceFilterActiveDebugToggle 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:

  1. Create a new Blueprint based on AAOBMirrorCardBaseActor.
  2. Set up the CardStaticMeshComp with the card mesh.
  3. Configure the WidgetCard widget component with the card content display.
  4. Implement BP_OnCardInfoChanged(UCardDataAsset*) to update the visual when card data changes.
  5. 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:

  1. Add UAOBMirrorCardsSlotDisplayComponent to your Blueprint.
  2. Configure in the Details panel:
PropertyCategoryDescription
AnchorActorSlotIDSettingsFName identifying which anchor actor's slot to mirror
SlotComponentNameSettingsComponent reference to the specific slot component
MirrorCardBaseActorClassSettingsThe mirror card Blueprint class to spawn
  1. At runtime, call FindMirroredSlotComponentByAnchorID(TeamID) or FindMirroredSlotComponentByFloatingPlayerArea(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, OnTokenStoredOnPoolDelegate fires.

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).

note

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:

  1. The pool reads counter values from the Notebook (via RefreshPoolBasedOnCurrentValue).
  2. When a player activates the pool, SpawnTokens() is called (Server RPC).
  3. When a player drops a token into the pool's slot, StoreTokens() is called.
  4. CanTokenBeStored(FName) validates whether a specific token type can be returned.
  5. The FloatingDisplayComponent shows 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โ€‹

tip

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:

  1. Server_ResetPosition() RPC is sent to the server.
  2. Server forwards to Client_ResetPosition().
  3. The tray smoothly lerps back to InitialPosition at LerpVelocity speed.
PropertyDefaultDescription
LerpVelocity1.5Speed 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:

  1. When a player hovers over an element, the VR interaction system asks the component for its HUD widgets.
  2. The component creates a Primary Widget (name, description) and optionally a Secondary Widget (actions, counters).
  3. Widgets are cached and reused until explicitly cleared.

Configuration:

PropertyDefaultDescription
PrimaryCustomWidgetClassnullCustom UMG widget class to embed inside the primary tooltip
PrimaryInternalWidgetClassnullOverride the entire primary widget class (advanced)
SecondaryWidgetClassnullOverride the secondary widget class (advanced)
SecondaryWidgetOffset550.0Vertical 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):

MethodDescription
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)โ€‹

tip

Full lockable system documentation: See the dedicated Lockable Game Elements guide for setup steps, strategies, and troubleshooting.

ULockIndicatorWidgetComponent โ€” Padlock Animationโ€‹

Setup:

  1. Ensure the actor has a ULockableActorComponent.
  2. Add ULockIndicatorWidgetComponent to the same actor.
  3. 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.

PropertyDefaultDescription
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.

PropertyCategoryDefaultDescription
bXFlip/AxisfalseFlip around X axis (pitch)
bYFlip/AxisfalseFlip around Y axis (roll)
bZFlip/AxistrueFlip 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.

tip

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โ€‹

FunctionDescription
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โ€‹

  1. Create a Blueprint based on AAOBCardBaseActor (or AAOBCardWidgetActor for widget content).
  2. Set up the card mesh, materials, and widget content.
  3. Configure audio events in the Audio category (optional).
  4. Create a GEDA_ data asset pointing to the Blueprint.
  5. Register in DT_GameElementIndex with Type = Card.
  6. Ensure the FactoryConfig maps Card to AOBGameElementFactoryCard.
  7. Add a GameSetup row (or handle spawning via deck/deal logic).

Adding a Token Poolโ€‹

  1. Create a token actor Blueprint based on AAOBTokenActor.
  2. Create a pool actor Blueprint based on AAOBTokenDelimitedPoolActor.
  3. Set the pool's PoolStaticMesh (container visual) and TokenStaticMesh (token preview).
  4. Configure PlacementConfig on the pool for how tokens spawn.
  5. Set TokenSpawnSound / TokenDeletedSound for audio feedback.
  6. Create GEDA_ data assets for both the token and the pool.
  7. Register both in DT_GameElementIndex.
  8. Add the pool to the GameSetup DataTable.

Setting Up a Floating Player Trayโ€‹

  1. Create a Blueprint based on AAOBFloatingTray.
  2. Set the GrabbableMesh to your tray mesh.
  3. Add any child slot components for cards/tokens.
  4. Adjust LerpVelocity for the reset speed (default 1.5).
  5. The Action_FloatingTrayRestart action is included via the ActionsComponent.
  6. Register and spawn via the Factory System.

Adding HUD Tooltip Customizationโ€‹

  1. The GEWidgetCreatorComp is already on most game element actors.
  2. To add a custom widget, create a UMG widget Blueprint and assign it to PrimaryCustomWidgetClass.
  3. To replace the entire primary widget, assign PrimaryInternalWidgetClass.
  4. To show counters, ensure the Notebook data has counter entries.

Making an Element Auto-Lock on Spawnโ€‹

  1. Add a ULockableActorComponent to the element Blueprint.
  2. Configure the Lock Duration and strategies on the component.
  3. In the GameSetup DataTable row, add UPostPlacementStrategyLock to PostPlacementStrategies.
  4. Optionally add a ULockIndicatorWidgetComponent for visual feedback.

Adding Lock Visual Feedbackโ€‹

  1. Ensure the actor has a ULockableActorComponent.
  2. Add ULockIndicatorWidgetComponent for padlock animation feedback.
  3. OR add UTextRenderLockIndicator for simple text feedback.
  4. The component auto-binds to lock events โ€” no additional wiring needed.

Showing Mirror Cards for a Slotโ€‹

  1. Create a mirror card Blueprint based on AAOBMirrorCardBaseActor.
  2. Implement BP_OnCardInfoChanged to display card data.
  3. Add UAOBMirrorCardsSlotDisplayComponent to the actor that should show the mirrors.
  4. Set MirrorCardBaseActorClass to your mirror card Blueprint.
  5. Set AnchorActorSlotID and SlotComponentName to identify the source slot.
  6. At runtime, call FindMirroredSlotComponentByAnchorID(TeamID) to bind.

Troubleshootingโ€‹

Card not visible to owning playerโ€‹

  • Check whether a container is forcing the visibility (deck bForceCardVisibility, slot bForceSlottedCardsVisibility, concealed hand, blocked player area). Forced Hidden hides 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 Owner only 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 ActionsComponent must have Always Visible checked. A hidden card hides every other Smart Glance action.

Token pool not dispensingโ€‹

  • Verify the pool has a valid TokenDelimitedPoolComp with correct min/max values.
  • Verify the pool's PlacementConfig is configured (tokens need a spawn position).
  • Check that the token Blueprint has a GameElementComponent and 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 valid InfoDataAsset.

Lock indicator not respondingโ€‹

  • Verify both ULockableActorComponent and the indicator component are on the same actor.
  • Verify the LockableActorComponent has both Lock Activation Strategy and Lockable Strategy assigned.
  • Verify Lock Duration is greater than 0.

Mirror cards not syncingโ€‹

  • Verify UAOBMirrorCardsSlotDisplayComponent has MirrorCardBaseActorClass set.
  • Verify AnchorActorSlotID and SlotComponentName match the source slot.
  • Call RefreshCardsDisplay() to force a full rebuild.

Floating tray not resettingโ€‹

  • Verify the tray's ActionsComponent includes UAction_FloatingTrayRestart.
  • Check that InitialPosition was captured correctly at BeginPlay.

Quick Referenceโ€‹

Architecture: Plugin Core vs AllOnBoard Extensionsโ€‹

LayerWhat It ProvidesExamples
BoardGameMechanics PluginInterfaces, base components, contractsIGameElement, UGameElementComponent, ITokenSupplyInterface, UTokenDelimitedPoolComp
AllOnBoard ProjectConcrete actors, VR interaction, visuals, audioAll 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, flippedAAOBCardBaseActor
A card with dynamic widget content (text, images)AAOBCardWidgetActor
A read-only copy of a card for displayAAOBMirrorCardBaseActor
A grabbable game piece/tokenAAOBTokenActor
A pool that dispenses/stores tokensAAOBTokenDelimitedPoolActor
A simple hoverable element with a tooltipAAOBGameElementInteractableActor
A moveable personal player areaAAOBFloatingTray
A team's play area with anchorsAAOBTeamSpaceActor

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โ€‹

TermDefinition
GEIDGame Element ID โ€” unique runtime integer assigned to each spawned element
GameElementNameFName identifier matching a row in the Factory's DT_GameElementIndex
GEDAGame Element Data Asset โ€” the GEDA_-prefixed data asset bridging a name to an actor Blueprint
MirrorA local-only visual copy of an element shown to other players (e.g., card back)
NotebookThe data binding system where each element stores runtime key-value data (counters, team, visibility)
Smart GlanceThe VR contextual actions menu shown when looking at a game element
SlotA USlotComponent that accepts slottable actors (cards, tokens) with snap behavior
TelltaleOverlap detection system used to determine if an element is "on" the board
Post-Placement StrategyModular behavior executed after an element is spawned by the Factory
Distance Filter / LODAutomatic quality reduction for far-away widget cards to save performance
LockableAn actor with ULockableActorComponent that can go through a timed locking process