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.
Display confirmation dialog when CLOSE in Unity 👉
PLEASE CONSIDER SUBSCRIBING TO THE CHANNEL
PRESS "DOWNLOAD NOW!" TO DOWNLOAD THE FILE
A SHORT BREAK WITH THE LATEST NEWS