I want to make a message box so if i press esc it will show to confirm on exit app. But i dont know how to make it. Its ok if you just give me a tutorial link video.
*sorry for my bad english.
*any help will appreciate
Please never make a full caps title and fill that with question marks, it’s only annoying.
I changed it for you this time but make sure you don’t do it.
As well as make sure to select the right category, the challenge category is when you have something that could be challenging for someone else to make.
Create a new canvas, you can add whatever you want there, buttons, text, panels.
On an empty game object add a new script, I called it ExitMenu. In the script you write this:
I commented out the code so it is easier to understand.
Now lastly select the empty game object with the script attached and drag in the canvas game object into the inspector where it is specified.
I made it so when you press escape it will toggle the canvas on or off.