Vigyata.AI
Is this your channel?

Unreal Engine 5.1 Endless Runner Tutorial - Part 14: Pause Menu

4.0K views· 19:52· Nov 26, 2023

🛍️ Products Mentioned (7)

Welcome back to part 14 of our tutorial series for creating an Endless Runner game in Unreal Engine 5.1! In this video, we'll show you how to add Pause Menu in the game. Assets: https://bit.ly/3pCAXJ7 Note: Before using any of the assets, please make sure to read the Readme file provided. Get the Endless runner project files here: https://shop.shivadev.com/b/erprojectfiles Note: The project files are constantly updated to reflect the latest tutorial in the series. Stay Connected: Discord: https://discord.gg/zFZ43Hjs3R Twitter: https://twitter.com/shivasgaming75 GitHub: https://github.com/Shiva9168 Instagram: https://www.instagram.com/shivas_gamingzone/ Portfolio: https://shiva9168.github.io/ Email: shivasgaming75[at]gmail.com Support Me: Patreon: https://patreon.com/shivasgaming PayPal: https://paypal.me/Shivasgaming Help me make more content by donating! -- Timestamps -- 00:00 Disclaimer 00:15 Intro 00:34 Adding Escape key input action 01:04 Creating PauseMenu_UI 06:31 Adding Pause Button (For Mobile) 11:00 Adding Functionality to Buttons 13:47 Pause game when pressed Escape 17:00 Resume game when pressed Escape 19:00 Fixing inputs not working after starting game from Main Menu 19:44 Outro Track Title: Tranquility Music by: TeknoAXE Music Link: https://youtu.be/08ddPOJnTL4 // Ignore the tags below. They are provided for reference purposes only. Tags: #gamedevelopment , #unrealengine5 , #animation , #powerups , #endlessrunner , #Subwaysurfers , #tutorial , Endless Runner Tutorial, Game Design, Game Programming, Game Tutorial, Indie Game Dev, Game Development Series, Endless Runner , Game Development for Beginners, Game Development Tutorial, Game Development Step-by-Step, Game Development Walkthrough, 3d Character, unreal character UI, User Interface

About This Video

In Part 14 of my Unreal Engine 5.1 Endless Runner series, I add a proper Pause Menu system that works on both PC (Escape key) and mobile (a pause button on the HUD). I start by creating a new input action by duplicating my existing one and naming it ESC_IA, then I bind it to the Escape key inside IMC_RunnerDefault. After that, I build a new widget called PauseMenu_UI with a clean layout: background blur, a tinted overlay, a centered vertical box, and three buttons—RESUME, OPTIONS, and MAIN MENU—plus the “Paused” header. Then I wire up the functionality: pausing the game, switching input mode to UI Only, showing the mouse cursor, creating the PauseMenu_UI widget, and adding it to the viewport. I also set up the Resume and Main Menu buttons so resume unpauses, restores Game Only input, hides the cursor, and removes the widget, while Main Menu opens MainMenu_Map. Finally, I fix the common issue where Escape stops working because the game is in UI Only mode by overriding On Key Down inside PauseMenu_UI and handling Escape there. As a bonus, I show a quick fix for inputs not working when starting from Main Menu by setting Input Mode Game Only in the Runner_Map level blueprint on Begin Play.

Frequently Asked Questions

🎬 More from Shiva's Gaming Zone