Unity在编辑器模式下取消运行
通过宏定义判断当前在什么环境下
然后对其进行操作
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false;
#else
Application.Quit();
#endif
Unity 退出编辑器模式
阅读 87
2022-05-31
Unity在编辑器模式下取消运行
通过宏定义判断当前在什么环境下
然后对其进行操作
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false;
#else
Application.Quit();
#endif
相关推荐
精彩评论(0)