0
点赞
收藏
分享

微信扫一扫

Unity 退出编辑器模式

Unity在编辑器模式下取消运行
通过宏定义判断当前在什么环境下
然后对其进行操作

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


举报

相关推荐

0 条评论