To create a death menu in Unreal Engine 5 (UE5), you can follow these steps:
Create a new widget blueprint: In the Unreal Editor, go to the "Blueprints" panel, right-click, and select "Create a Blueprint Class." Choose "Widget" as the parent class and select the "User Widget" option from the list of templates. This will create a new widget blueprint that you can use to build your death menu.
Design the menu: In the widget blueprint, you can design the death menu by adding buttons, images, and text to the user interface. You can use the "Visual Designer" to drag and drop elements onto the menu, or you can use the "Graph Editor" to add code for more complex interactions.
Add functionality: In the widget blueprint's event graph, you can add functionality to the death menu. For example, you can add code to restart the game, return to the main menu, or quit the game.
Show the death menu: To show the death menu in-game, you can use a "Show widget" node in your player character blueprint's death logic. When the player character's health reaches zero, you can use this node to display the death menu on the screen.
Hide the death menu: To hide the death menu when the player decides to restart the game, return to the main menu, or quit the game, you can use a "Remove from Parent" node in the appropriate branches of your death menu's event graph.
This is just a basic outline, and the specifics will depend on your specific requirements for your death menu. You can find more information on creating UI in Unreal Engine in the Unreal Engine documentation.
If you learn something new, please like and subscribe.
Below, it the following tools that I use to create the video at no cost
Recording Program/ Enregistrement Gratuit
https://obsproject.com/
Video Editor Program/ Éditeur de vidéo gratuit
https://www.shotcut.org/
---------------------------------------------------------------------------
This is Unreal Engine, the best, in my opinion to create video, editing program, the game engine to create games, to creatively increase your knowledge, that keep you entertain at all time, with a lot of resources to help you out at anything and at anytime, creating games such as shooter, platformer, puzzle, racing and more, to create any video, cinematic and others. Don't heisted to try it out and the reward of perseverance to learn will be rewarding in the most satisfying way you can or cannot imagine. Keep the good word and create the best game of all time that will impact the world!