当前位置:网站首页>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
边栏推荐
- What if the xshell evaluation period has expired
- 【无标题】
- PCAP学习笔记二:pcap4j源码笔记
- Day21 multithreading
- 基于NeRF的三维内容生成
- Leetcode brush question: binary tree 24 (the nearest common ancestor of binary tree)
- - Oui. Migration entièrement automatisée de la Sous - base de données des tableaux d'effets sous net
- About the problem of APP flash back after appium starts the app - (solved)
- Day26 IP query items
- HZOJ #235. Recursive implementation of exponential enumeration
猜你喜欢

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

Go language learning notes - structure

Practical example of propeller easydl: automatic scratch recognition of industrial parts

Leetcode skimming: binary tree 25 (the nearest common ancestor of binary search tree)

HZOJ #240. 图形打印四

leecode3. 无重复字符的最长子串

ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型

关于 appium 启动 app 后闪退的问题 - (已解决)

云检测2020:用于高分辨率遥感图像中云检测的自注意力生成对抗网络Self-Attentive Generative Adversarial Network for Cloud Detection

人均瑞数系列,瑞数 4 代 JS 逆向分析
随机推荐
红杉中国完成新一期90亿美元基金募集
ip2long之后有什么好处?
2022 practice questions and mock examination of the third batch of Guangdong Provincial Safety Officer a certificate (main person in charge)
[learn wechat from 0] [00] Course Overview
ICLR 2022 | 基于对抗自注意力机制的预训练语言模型
【Presto Profile系列】Timeline使用
如何将 @Transactional 事务注解运用到炉火纯青?
【无标题】
基于鲲鹏原生安全,打造安全可信的计算平台
Design and implementation of communication protocol
leecode3. 无重复字符的最长子串
Leetcode skimming: binary tree 27 (delete nodes in the binary search tree)
Visual stdio 2017 about the environment configuration of opencv4.1
如何让electorn打开的新窗口在window任务栏上面
File operation command
通过Keil如何查看MCU的RAM与ROM使用情况
在字符串中查找id值MySQL
What are the benefits of ip2long?
Day22 deadlock, thread communication, singleton mode
PCAP学习笔记二:pcap4j源码笔记