当前位置:网站首页>Unity build error: the name "editorutility" does not exist in the current context
Unity build error: the name "editorutility" does not exist in the current context
2022-07-07 13:03:00 【charlsdm】
The reason for your error now is ,Unity Deleted at compile time for its design “UnityEditor” Namespace . This is why when you try to use it on the platform ,“EditorUtility” Will never exist except UnityEditor On any platform other than . because “EditorUtility” stay “UnityEditor” In the namespace .
therefore , If you want to use “EditorUtility” Execution and in Unity The same work done in the editor , You should implement it like them .
#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
边栏推荐
- 关于 appium 如何关闭 app (已解决)
- [learn microservice from 0] [01] what is microservice
- test
- 博文推荐|Apache Pulsar 跨地域复制方案选型实践
- Importance of database security
- Star Enterprise Purdue technology layoffs: Tencent Sequoia was a shareholder who raised more than 1billion
- 免费手机号码归属地API查询接口
- CMU15445 (Fall 2019) 之 Project#2 - Hash Table 详解
- File operation command
- Cookie and session comparison
猜你喜欢

Smart cloud health listed: with a market value of HK $15billion, SIG Jingwei and Jingxin fund are shareholders

About the problem of APP flash back after appium starts the app - (solved)

Differences between MySQL storage engine MyISAM and InnoDB

共创软硬件协同生态:Graphcore IPU与百度飞桨的“联合提交”亮相MLPerf

Adopt a cow to sprint A shares: it plans to raise 1.85 billion yuan, and Xu Xiaobo holds nearly 40%

认养一头牛冲刺A股:拟募资18.5亿 徐晓波持股近40%

Blog recommendation | Apache pulsar cross regional replication scheme selection practice

Talk about four cluster schemes of redis cache, and their advantages and disadvantages

Lingyunguang of Dachen and Xiaomi investment is listed: the market value is 15.3 billion, and the machine is implanted into the eyes and brain

Awk of three swordsmen in text processing
随机推荐
Cookie
Go语言学习笔记-结构体(Struct)
ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
云检测2020:用于高分辨率遥感图像中云检测的自注意力生成对抗网络Self-Attentive Generative Adversarial Network for Cloud Detection
AUTOCAD——大于180度的角度标注、CAD直径符号怎么输入?
Common text processing tools
API query interface for free mobile phone number ownership
2022a special equipment related management (boiler, pressure vessel and pressure pipeline) simulated examination question bank simulated examination platform operation
HZOJ #236. 递归实现组合型枚举
【无标题】
博文推荐|Apache Pulsar 跨地域复制方案选型实践
@Resource和@Autowired的区别?
[learn wechat from 0] [00] Course Overview
【学习笔记】AGC010
认养一头牛冲刺A股:拟募资18.5亿 徐晓波持股近40%
What if the xshell evaluation period has expired
Leetcode skimming: binary tree 20 (search in binary search tree)
Leetcode skimming: binary tree 25 (the nearest common ancestor of binary search tree)
智云健康上市:市值150亿港元 SIG经纬与京新基金是股东
How does MySQL create, delete, and view indexes?