error CS0103: The name `UnityEditor' does not exist in the current context

来源:互联网 发布:电动汽车充电软件 编辑:程序博客网 时间:2024/05/23 11:50
现象:在编译器下运行一切正常,但是Build时,会出现这个错误导致不能build问题
解决办法:在报错的代码里查找所有引用UnityEditor脚本的地方,将其修改为类似于
#if UNITY_EDITOR
            UnityEditor.EditorApplication.update = UpdateStringName;
#endif
的格式就可以解决该问题了
0 0
原创粉丝点击