当前位置:网站首页>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
边栏推荐
- HZOJ #240. 图形打印四
- ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
- [binary tree] delete points to form a forest
- [learn wechat from 0] [00] Course Overview
- 货物摆放问题
- What are the benefits of ip2long?
- Per capita Swiss number series, Swiss number 4 generation JS reverse analysis
- Creation and assignment of graphic objects
- Cookie
- Ip2long and long2ip analysis
猜你喜欢
博文推荐|Apache Pulsar 跨地域复制方案选型实践
[untitled]
How to continue after handling chain interruption / sub chain error removed from scheduling
“新红旗杯”桌面应用创意大赛2022
Adopt a cow to sprint A shares: it plans to raise 1.85 billion yuan, and Xu Xiaobo holds nearly 40%
【Presto Profile系列】Timeline使用
Image pixel read / write operation
PACP学习笔记一:使用 PCAP 编程
人均瑞数系列,瑞数 4 代 JS 逆向分析
认养一头牛冲刺A股:拟募资18.5亿 徐晓波持股近40%
随机推荐
为租客提供帮助
[learn wechat from 0] [00] Course Overview
《开源圆桌派》第十一期“冰与火之歌”——如何平衡开源与安全间的天然矛盾?
【Presto Profile系列】Timeline使用
Per capita Swiss number series, Swiss number 4 generation JS reverse analysis
test
【学习笔记】AGC010
HZOJ #235. Recursive implementation of exponential enumeration
JS中为什么基础数据类型可以调用方法
云检测2020:用于高分辨率遥感图像中云检测的自注意力生成对抗网络Self-Attentive Generative Adversarial Network for Cloud Detection
.Net下极限生产力之efcore分表分库全自动化迁移CodeFirst
国泰君安证券开户怎么开的?开户安全吗?
layer弹出层的关闭问题
Guangzhou held work safety conference
ip2long之后有什么好处?
Differences between MySQL storage engine MyISAM and InnoDB
API query interface for free mobile phone number ownership
Grep of three swordsmen in text processing
About the problem of APP flash back after appium starts the app - (solved)
聊聊Redis缓存4种集群方案、及优缺点对比