Practical guide
Create a menu or HUD
Register a widget so your game can open it on the right layer.
SGF 1.0.1 · Unreal Engine 5.8 · Reviewed
When you finish
You can open a screen, navigate it and return control to the game.
On this page
StormUI decides where a screen opens and handles its lifetime for the local player. StormWidgets supplies reusable controls such as buttons, selectors, steppers and progress bars.
Add a first screen
- Enable CommonUI and set the project viewport client to CommonGameViewportClient. Use the example primary layout and widget registry in SGF’s SGFUI content as a starting point. Copy any assets you plan to edit into your project.
- Create a screen widget using CommonUI. Add one visible control, such as a Close button, using a supplied widget or your own.
- In your widget registry, associate the screen’s gameplay tag with its widget class and layer. Use a menu layer for a screen that takes focus, or a gameplay layer for a HUD that should stay behind it.
- Set Widget Registry and Default Primary Layout Class in Project Settings > Storm UI, then have a test action request the screen by its tag.
Check input and focus
Open the screen with a keyboard and, if relevant, a controller. Confirm that the first intended control receives focus and that Close returns control to gameplay. Repeat after travelling to a new map. If the screen fails to appear, check the registry entry, widget class, active layout and local player first.