Triggering the Pause menu
Now that we have created our Pause menu, we need to create a way for the player to bring up the menu. Traditionally, computer games use the Esc key to pause the game and return to a menu, so we will follow that trope here. First, we will bind the Esc key to a pause Action. Just as we did in Chapter 6, Enhancing Player Abilities, we will add a new Action mapping to Project Settings. On the Edit button in the Unreal Editor menu, select the Project Settings option. On the left side of the window that appears, look for the Engine category and select the Input option. Click on the + sign next to Action Mappings, and then name the mapping as Pause. Use the drop-down menu to select the Escape key mapping, as seen in this ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access