How to exit the game in Unity with confirmation dialog

Description

This solu¬≠tion con¬≠sists of a scene with two but¬≠tons, one with the text "Play" and the oth¬≠er with "Exit", the first but¬≠ton does noth¬≠ing, the sec¬≠ond one dis¬≠plays a con¬≠fir¬≠ma¬≠tion dia¬≠log that asks us if we are sure we want to exit and has two but¬≠tons, the NO but¬≠ton and the YES but¬≠ton, the first one clos¬≠es the con¬≠fir¬≠ma¬≠tion dia¬≠log and we return to the menu, the sec¬≠ond one clos¬≠es the appli¬≠ca¬≠tion or game in Unity.

Download Unity Package

ūüéĀ UNITY PACKAGE: Exit appli¬≠ca¬≠tion with con¬≠fir¬≠ma¬≠tion dialog

ABOUT THIS SOLUTION

  • By click¬≠ing in Down¬≠load you will get a file with "Uni¬≠ty Pack¬≠age" exten¬≠sion. Drag and drop that file into Uni¬≠ty to import it.
  • When you import this Uni¬≠ty Pack¬≠age you will find a fold¬≠er with a scene, a script and some extras.
  • Open the scene and you'll find detailed infor¬≠ma¬≠tion about how this solu¬≠tions works.

IF YOU WANT TO THANK FOR THIS DOWNLOAD YOU CAN DO IT BY SUBSCRIBING TO THE CHANNEL
WITH THIS YOU HELP ME TO KEEP CREATING MORE CONTENT TO SHARE

ūüüĘ How to exit the game in Uni¬≠ty with con¬≠fir¬≠ma¬≠tion dia¬≠log
 

CHECK OUT THIS CRAZY EXPERIMENT

YouTube
Scroll to Top
Secured By miniOrange