I made a pause menu for my game and it is working perfectly fine except one thing - I can’t close it with a hotkey.
I was searching on the forum and found the [topic][1] with the same problem without any answers.
Keep Set Input Game Mode and UI on. You really do not want to use Set Input Mode UI Only too much. It’s not really needed.
Next, on “InputActionMenu” key, click on it, and on the details tab, check on Execute when Paused
That should resolve your issue. However, your graph is a bit messy and convoluted. You should be able to just use a FlipFlop node for this for the Toggle of the Menu on key press.
I was using FlipFlop at the first place, but I found that it is not working properly with Resume button in the menu. If I will use the button to close the menu FlipFlop won’t be able to know about it and will stay in the same state.
The only thing left - when I’m pressing on the blank space in the menu my cursor is disappearing for a second. Is there a way to fix it? I assume that it is because he’s changing focus for a second.