You would think this is easy, but have issues.
So tried this in the player pawn and the player controller where you press P and flip flop between ‘Set Game Paused’ bool pause and unpause.
What happens is that the first press work and the world pauses but I can’t press again to unpause.
I tried to enable tick while paused in the class defaults, it doesn’t work (but cool effect where the world is frozen in motion blur while the character is still in idle anim)
The only way this work is making a widget on viewport and you have to click on widget button to unpause.
Is there any way to do this with a keypress or are all keypress locked when the game is paused?