I want to make a pause screen and have the TAB key toggle it on and off.
in the player controller blueprint i have the TAB key branch off depending on the Menu Open state. When opening the menu i pause the game but this pauses the controller as well so that pressing it again doesnt exit out of the menu.
What is the proper way to implement this type of functionality?
There is a Set Game Paused function you can use in the PlayerController, along with Set âShow Mouse Cursorâ and Set âEnable Click Eventsâ. When paused you can still do cursor driven hitbox events in the HUD class.
Hopefully this helps someone else trying to use the built in controller/keyboard functionality and pausing the game. As i spent 2 hours trying to figure this out and kept ending up on this post.
If you set your hud to SetTickableWhenPaused then you will be able to navigate menu buttons using built in functionality, as long as they have focus. I just set this on my game mode class.
I stumbled across this thread when implementing keyboard input for an options menu while the game is paused. What did the trick for me was to set âExecute when Pausedâ directly at the node of the button input.