How to exit the game in Unity with confirmation dialog

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.

Display confirmation dialog when CLOSE in Unity ๐Ÿ‘‰

Exit Button with confirmation Screen

PLEASE CONSIDER SUBSCRIBING TO THE CHANNEL


PRESS "DOWNLOAD NOW!" TO DOWNLOAD THE FILE

A SHORT BREAK WITH THE LATEST NEWS

CONSIDER SUBSCRIBING!


LET'S CONTINUE WITH THE ARTICLE

Secured By miniOrange