Ik, novice question. But…
I’m trying to create a basic pause menu, I’ve followed the tutorial found in the engine documents, but it’s not exactly what I want. So I botched together a function in the “ThirdPersonCharacterBP” blueprint which gets called when I hit “ESC” on the keyboard.
Hopefully you can make sense of that^.
The setting of the boolean to true (at the end) is to stop the user from repeatedly pushing “ESC” and creating the “PauseMenu” widget layer upon layer.
This all works fine. Perfectly. Too perfectly.
The above widget blueprint also works fine. You can hit “ESC” whilst playing and it’ll pause, bring the pause menu up and you’re able to interact with it correctly.
Now this is the tricky bit. From within this widget, preferably following on at the end, I would like to set the boolean “PauseMenuActive” back to false. So that I can open it again, because at the moment all I get is one use of it, I hit resume followed by “ESC” to find that the program still thinks that the pause menu is active.
TL;DR
Above blueprints work fine, but I want to change the “PauseMenuActive” boolean back to false when I resume gameplay. And yes, it is a public variable.