Pause menu opening and closing || On key down in widget
So I am making a singleplayer game, I want to make it so that if i press lets say escape a pause menu will pop-up and when you press the same button again it disappears. So I was searching around for something to help me with my pause menu and found a video by Virtus. Now it wasnt the video that helped me it was a comment by Keytotruth. He had a more efficient way to do the thing in the video (Which btw didnt work for me the things in the video).
Keytotruth came up with this:
Now this didnt work for me as you will see in my image, probably because of the "get key". You see, I used a different "Get key" as mr. keytotruth did, but i cant find the one he used so thats why I post this question because i can find it... (Yes I am very new to the UE4 landscape, but i know i did something wrong)
P.S. The picture I took does not have the Exec. pin plugged in, that isnt the problem, i tested it with but it still didnt work, also I made the widget focusable.
I think both of those ways are incredibly convoluted for something as simple as a pause menu if you know what key you want to pause and unpause your game. Here is a different solution. Be sure to check the box on the keyboard event (whichever one you select to execute this code) to have it receive input when paused.
answered Feb 17 '19 at 05:19 AM
Nebula Games Inc
Follow this question
Once you sign in you will be able to subscribe for any updates here