Common UI Notes

Focus is lost after I click anywhere on the screen!

If you have some keys bound (like press esc to exit a menu) and they won’t register after you click somewhere in the screen (and one of your focusable buttons is not hovered and you are not using gamepad), here is simple fix:

On the main overlay or canvas panel, just set it to Visible rather than non-hit testable.

This ensures that you cannot click off of the current activated widget, so focus is never lost. That’s what I assume anyways - I just make the things work,dunno what exactly is happening under the hood.

1 Like