Problems every Rolly product's screens can show (where they draw, the pause, the game's input and focus after they close, Common UI and its icons, the theme, world layers, the radial), what causes them and how to fix them.
Sheet
09 of 45
Rev
1.2.0
Updated
On this sheet
Screens do not show above my HUD
Cause: a HUD added with Add to Viewport draws above each player’s screens.
Fix: set Project Settings > Plugins > Rolly Settings Core UI > Screen Layer to Viewport, or place the screens in a panel of your HUD with Set Host Panel (see Open screens on the screen stack).
The game does not pause while a screen is open
Cause: screens pause only a standalone game; a listen server, a client and Play In Editor with players over the network never pause for one player’s screen. Pausing may also be set to Never, or the screen’s Pause Game turned off.
Fix: this is by design in networked games; in a standalone game check the two options.
The game stays paused after the screens close
Cause: the game paused itself (Set Game Paused, under a pause menu of its own) before the first pausing screen opened. That pause is the game’s: the screens leave it as they found it.
Fix: unpause where your pause menu closes, as without the screens.
Input or the cursor is wrong after the last screen closes
Cause:Input After Screens puts back what was recorded when the first screen opened; your own code may change input while screens are open.
Fix: pick Game Only or Game And UI, or Custom and set input yourself in On Stack Closed.
My menu has no focus after the screens close
Cause: focus goes back to the widget that had it when the first screen opened only while Input After Screens is Previous (the default), that widget still shows and no map change closed the screens; otherwise it goes to the game viewport (Previous), where the input mode puts it (Game Only, Game And UI), or nowhere (Custom).
Fix: keep your menu on screen while the Rolly screens are open, or give it focus yourself in On Stack Closed.
The game has no input after screens of two Rolly products close
Cause: both products are of versions before this fix (Rolly Settings 1.0.0 with Rolly Save 1.0.0): one product recorded the game’s input while the other’s restore still waited for its screens, and put that record back last.
Fix: update both products to a version whose changelog lists the fix. One updated product is enough except at a map change while the older product’s screen opened first and its input still waits to come back.
In a Common UI game, Accept clicks the middle of a row or focus stays on my menu
Cause: the screens adapt to Common UI only while the game viewport client is CommonGameViewportClient (or a subclass) and Project Settings > Plugins > Rolly Settings Core UI > Common UI is Auto; a setup message says when a Common UI name could not be found. A Common UI Host Class whose Get Desired Focus Target returns a widget keeps focus from the Rolly screens.
Fix: set Game Viewport Client Class to CommonGameViewportClient and Common UI back to Auto, and leave the host class’s Get Desired Focus Target empty (see Host screens in Common UI or your own layers).
Common UI’s action bar is empty while a screen is open
Cause: the Rolly screens show their own prompts and bind no Common UI actions.
Fix: hide the action bar while it lists nothing.
Key caps are drawn instead of my Common UI icons
Cause:Common UI Icons is Off; the platform’s Common Input settings list no controller data with an icon for the key; the gamepad’s controller data has another Gamepad Name than the one the caps ask for; the player picked another family’s prompts (Rolly Settings’ Controller Prompts) and Common UI Gamepad Names names no pad for it; a theme’s Glyph Override replaces the key; or a setup message says this engine’s Common UI lacks a name the icons read, or has it with another type.
Fix: set Common UI Icons to Auto, give the key an icon in the controller data of its device, map each gamepad family to its controller data’s Gamepad Name in Common UI Gamepad Names, or remove the Glyph Override (see Host screens in Common UI or your own layers).
A widget on a world layer does not show
Cause: its point is off screen or behind the camera and Off Screen is Hide; it is farther than Max Distance; its component left play, which took it off the layer (On Anchor Dropped); the map ended, or the game’s Remove All Widgets ran, which took the layer away with its widgets; the game hid the layer; a value of its anchor is not a number; or the layer was full, which a setup message says.
Fix: set Off Screen to Keep At Edge, raise Max Distance or set it to 0, anchor it again to a component in play, ask for the layer again (in the new map, or after Remove All Widgets), show the layer, or raise Max World Anchors (see Anchor widgets to the world).
My radial, tabs or prompts show the built-in parts instead of my class
Cause: the class picked for the part (an Item Class, Tab Class, Prompt Class, Toast Class or a layout’s template) is abstract, deprecated or replaced by a newer version, which a setup message names; such a class cannot be made.
Fix: pick a class that can be made, or clear Generate Abstract Class and Deprecate in its Class Settings.
A radial shows only eight of my entries
Cause: a radial shows eight entries at most; a setup message says how many were left out.
Cause: the theme cannot be loaded (not cooked, or the product that owns its class was removed), or another layer wins: Theme Source, rolly.ui.theme, the shared theme.