Skip to content

UI Sample

The showcase demonstrates four UI paths: screen navigation, loading state, HUD variables, and world markers.

Screens and loading

ShowcaseMainMenuWidget opens the game and pushes the instructions screen. The loading screen is configured in EngineSettings; WidgetSubsystem shows it during travel and lets its hide animation finish after the world and local character are ready.

HUD variables

ShowcaseHud finds the local input-authority character and publishes health, stamina, inventory, equipment, and ammunition through SetVariable:

csharp
SetVariable("health", character.Health);
SetVariable("inventoryCount", inventoryCount);
SetVariable("ammoMagazine", weapon.AmmoInMagazine);

ShowcaseTextBinding converts those values into local TMP presentation. Replicated gameplay remains on the character and weapon; the widget owns no authoritative state.

World markers

Specialized markers present labels, interaction prompts, and dummy health. WorldMarkerSubsystem performs camera projection, distance fade, viewport checks, and occlusion centrally for the active world and peer.

Continue with Manual: UI.

RedEngine Framework documentation