Before you build your game in exclusive full-screen mode, you should first think about adding an exit feature to your application, otherwise there will be no way to exit the game or close the game window.
This is easy to do, just use the condition and check the input key for “Escape” and then use the “Quit” method of the “Application” class:
Remember not to copy code, if you are not sure how to write a function, try to find it yourself using the Unity documentation available at the link below:
Suggest a change Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all…