![](https://img-blog.csdnimg.cn/4e027dd0a2f341a596682c80704a8d5f.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Unity
文章平均质量分 56
One unified platform with flexible solutions for you to build, manage, and grow your game.
肖恩尼
这个作者很懒,什么都没留下…
展开
-
Unity 将 Enum 转为中文选项
作UI控件、数据持久化时经常遇到将 Enum 转为汉字或传递至 Dropdown options 的困扰。使用本方案可一次性解决问题,无需在每次转换时写诸多重复代码。原创 2022-10-27 10:57:13 · 1093 阅读 · 0 评论 -
Unity - Run coroutines correctly in edit mode.在编辑模式正确运行Coroutines.
Unity - 在编辑模式正确运行Coroutines. 环境: Unity2019.4, Windows 10 问题: 在编辑模式下,某些Coroutine可以正确运行,但是如果IEnumerator中含有while或for循环,那么Coroutine会卡在循环中,此时只有手动更新Editor(例如在Inspector中输入,或在Scene中移动某个GameObject),Coroutine才会继续迭代。 推测原因: IEnumerator所依赖的某些刷新机制在Edit Mode下没有被自动执原创 2021-10-27 12:28:43 · 1665 阅读 · 0 评论