⌘BABAKOV.NET Let's code!
100% [light] [ru]
~/posts $

November 2025

1 total

1 total

Correct Game Exit in Unity for Different Cases

Example of Correct Game Exit in Unity public void Quit() { #if (UNITY_EDITOR || DEVELOPMENT_BUILD) Debug.Log(this.name+" : "+this.GetType()+" : "+System.Reflection.MethodBase.GetCurrentMethod().Name); #endif #if (UNITY_EDITOR) UnityEditor.EditorApplication.isPlaying = false; #endif #if (UNITY_WEBGL || UNITY_STANDALONE || UNITY_IOS || UNITY_ANDROID) Application.Quit(); #endif }

28 views 1 comments 0 likes ./Read →