当前位置:网站首页>Unity 构建错误:当前上下文中不存在名称“EditorUtility”
Unity 构建错误:当前上下文中不存在名称“EditorUtility”
2022-07-07 10:46:00 【charlsdm】
您现在出现错误的原因是,Unity 在为其设计的编译时删除了“UnityEditor”命名空间。这就是为什么当您尝试在平台上使用它时,“EditorUtility”将永远不会存在于除 UnityEditor 之外的任何平台上。因为“EditorUtility”在“UnityEditor”命名空间中。
因此,如果您想使用“EditorUtility”执行与在 Unity 编辑器中所做的相同的工作,您应该像他们一样实现它。
#if UNITY_EDITOR
EditorUtility.DisplayDialog(“Great!”, “You got the pattern right!”, “Next Level!”);
#else
YOUROWNCLASS.DisplayDialog(“Great!”, “You got the pattern right!”, “Next Level!”);
#endif
边栏推荐
- [crawler] avoid script detection when using selenium
- How to apply @transactional transaction annotation to perfection?
- [deep learning] image multi label classification task, Baidu paddleclas
- ICLR 2022 | 基于对抗自注意力机制的预训练语言模型
- [learn micro services from 0] [02] move from single application to service
- leetcode刷题:二叉树24(二叉树的最近公共祖先)
- ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
- [statistical learning methods] learning notes - improvement methods
- HZOJ #240. Graphic printing IV
- Day-19 IO stream
猜你喜欢

2022 practice questions and mock examination of the third batch of Guangdong Provincial Safety Officer a certificate (main person in charge)

Image pixel read / write operation

BGP third experiment report

The IDM server response shows that you do not have permission to download the solution tutorial

opencv的四个函数

About IPSec

2022a special equipment related management (boiler, pressure vessel and pressure pipeline) simulated examination question bank simulated examination platform operation

智云健康上市:市值150亿港元 SIG经纬与京新基金是股东
![[statistical learning methods] learning notes - improvement methods](/img/c5/515f171995da8e424de290228b54f8.png)
[statistical learning methods] learning notes - improvement methods

How to use PS link layer and shortcut keys, and how to do PS layer link
随机推荐
Common knowledge of one-dimensional array and two-dimensional array
数据库安全的重要性
Error in compiling libssl
Day22 deadlock, thread communication, singleton mode
Realize a simple version of array by yourself from
Leetcode skimming: binary tree 25 (the nearest common ancestor of binary search tree)
BGP third experiment report
ip2long与long2IP 分析
Cookie
2022聚合工艺考试题模拟考试题库及在线模拟考试
2022 polymerization process test question simulation test question bank and online simulation test
Master formula. (used to calculate the time complexity of recursion.)
leetcode刷题:二叉树19(合并二叉树)
Day-14 common APIs
Sorting, dichotomy
企业级自定义表单引擎解决方案(十二)--体验代码目录结构
About IPSec
2022广东省安全员A证第三批(主要负责人)考试练习题及模拟考试
【统计学习方法】学习笔记——第四章:朴素贝叶斯法
PHP calls the pure IP database to return the specific address