Description
This solution consists of a scene with two buttons, one with the text "Play" and the other with "Exit", the first button does nothing, the second one displays a confirmation dialog that asks us if we are sure we want to exit and has two buttons, the NO button and the YES button, the first one closes the confirmation dialog and we return to the menu, the second one closes the application or game in Unity.
Download Unity Package
ABOUT THIS SOLUTION
- By clicking in Download you will get a file with "Unity Package" extension. Drag and drop that file into Unity to import it.
- When you import this Unity Package you will find a folder with a scene, a script and some extras.
- Open the scene and you'll find detailed information about how this solutions works.
If you have questions about Blender, Unity or this download leave a comment in any video of the channel
I normally respond within hours

🟢 How to exit the game in Unity with confirmation dialog
