当前位置:网站首页>Unity exit Editor Mode

Unity exit Editor Mode

2022-06-13 07:53:00 Shiyuan

Unity Cancel running in Editor Mode
Determine the current environment through macro definitions
And then operate on it

		#if UNITY_EDITOR
		UnityEditor.EditorApplication.isPlaying = false;
		#else
		Application.Quit();
		#endif
原网站

版权声明
本文为[Shiyuan]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/164/202206130752282194.html