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 ...

Get Blueprints Visual Scripting for Unreal Engine - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.