Pause Key not working after adding Resume Button

I am pretty far on my game project and almost ready to release it so I have been working on a menu system for it.

At first I had just a standard flip flop to pause/unpause with the P key.

However, I chose to add in a pause menu with a Resume Button as well and now this seems to have broken the P key.

I can pause it and click the resume button to unpause it but if I try using the P key to unpause it as an alternative then nothing happens.

I have been attempting to fix it but after several tries nothing is working.

Can someone help advise me on how to fix this problem?

The only alternative I can think of is just to remove the Resume Button and only use the P key for pause/unpause and displaying the pause menu. I then tried this by just removing the Resume Button and the blueprint scripting related to it but the problem is still there so it seems something else is causing the issue somewhere.

I just thought it would look nicer if there was a resume button in there too.

Thanks for your help in advance!

Screenshots -

Nevermind, I figured it out with some advice someone gave me.

It was the " Set as UI Mode " which needed to be the other one for " UI + Game Mode ".

I am leaving this post up so that hopefully it will help others with any similar issues.

Updated Screenshot-

Set the ‘execute when paused’ option on the input Key

1 Like