Hello. I’m trying to make a pause, but I want to be able to switch it’s states as on/off using the same key. I’m using checkbox Execute when paused, but if I do it like that:
If you switch to UI Only mode, the player controller cannot receive input. We took that processing ability away.
The easiest way to go around it, is to override onKeyDown in the widget that pops up (full menu), make it keyboard focusable and give it keyboard focus. The widget can then handle the keypress, set the mode back to Game Only and close itself.
Alternatively, the widget can call the top bit of the script above. But you still need to handle keypresses in the widget since we’re now in the UI Only mode.
And yet another alternative is to go Game & UI mode. If the widget does not Handle input, it’s passed on to the PC.