Skip to content

Sein User Widget

Class · USeinUserWidget : UUserWidget

#include "Core/SeinUserWidget.h"

abstract: use a subclass · can be subclassed in Blueprint

Base class for SeinARTS UI widgets.

Automatically discovers and caches the UI subsystem, player controller, and world subsystem on construct. Provides convenience accessors so that Widget Blueprints can access the full ViewModel and data layer with minimal boilerplate.

This is intentionally thin — no auto-binding to delegates, no Refresh() pattern. Widgets subscribe to whatever they need in Blueprint.

Get the selection model (tracks current selection, provides entity ViewModels).

USeinSelectionModel* GetSelectionModel() const;

Get the local player’s ViewModel (resources, tech, etc.).

USeinPlayerViewModel* GetLocalPlayerViewModel() const;

Get or create an entity ViewModel for a specific entity.

USeinEntityViewModel* GetEntityViewModel(FSeinEntityHandle Handle) const;

Get the minimap view-model (blips, fog overlay, background).

USeinMinimapViewModel* GetMinimapViewModel() const;

Get the actor bridge subsystem.

USeinActorBridgeSubsystem* GetActorBridge() const;

bool bConsumeClicks · default true

Editable in defaults and on instances · Blueprint read and write

Stops unhandled left and right clicks from reaching parent widgets or the game. Child controls and this widget’s Blueprint mouse handlers run first. Disable to let unhandled clicks continue to parents, which may still consume them. For a full-screen HUD, keep the widget and layout canvas Not Hit-Testable (Self Only) and its interactive backgrounds Visible so empty screen space remains playable.

TWeakObjectPtr<USeinUISubsystem> UISubsystem

Blueprint read-only

The UI subsystem (ViewModel factory).

TWeakObjectPtr<ASeinPlayerController> SeinPlayerController

Blueprint read-only

The local player’s SeinARTS player controller.

TWeakObjectPtr<USeinWorldSubsystem> WorldSubsystem

Blueprint read-only

The simulation world subsystem.