First we make the widget. You can see below how I have everything organized. I put all the buttons in a Horizontal Box and called it “pauseMenuStuff” and then I put the info that comes up when you click the “INFO” button in a Vertical Box and called it “informationSection.” I then hid it so I could see my regular menu. I also made “pauseMenuStuff” and “informationSection” variables by ticking the Is Variable option on the upper right corner.
Next I setup my button events. At first I hid the info section. When you click play, the game unpauses, when you click info, the 3 buttons and game title go away and reveal an information section with a button to go back. When that button is pressed it hides the info section and puts the 3 buttons visibility back.
Lastly we need to toggle this menu. First I went into my project settings and made an InputAction called “pause.” I recommend making this the Tab key while you are testing as escape will quit the viewport. Very important! When you select the “pause” action be sure to tick Execute when Paused so that you can toggle out of the menu by also hitting the pause action. The logic below is removing the menu if it’s already showing and adding it if it isn’t whenever I hit the pause key. I put this in my character blueprint.


