当前位置:网站首页>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 kind of methods or functions can you view the laravel version of a project?
- 用mysql查询某字段是否有索引
- Conversion from non partitioned table to partitioned table and precautions
- Leetcode skimming: binary tree 23 (mode in binary search tree)
- Cookie and session comparison
- Differences between MySQL storage engine MyISAM and InnoDB
- PACP学习笔记三:PCAP方法说明
- 共创软硬件协同生态:Graphcore IPU与百度飞桨的“联合提交”亮相MLPerf
- Creation and assignment of graphic objects
猜你喜欢
Go language learning notes - structure
Analysis of DHCP dynamic host setting protocol
.Net下极限生产力之efcore分表分库全自动化迁移CodeFirst
Master formula. (used to calculate the time complexity of recursion.)
Sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]
Leetcode skimming: binary tree 27 (delete nodes in the binary search tree)
基于鲲鹏原生安全,打造安全可信的计算平台
ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
ICLR 2022 | 基于对抗自注意力机制的预训练语言模型
Practical example of propeller easydl: automatic scratch recognition of industrial parts
随机推荐
基于NeRF的三维内容生成
Steps of building SSM framework
ClickHouse(03)ClickHouse怎么安装和部署
环境配置篇
2022 polymerization process test question simulation test question bank and online simulation test
为租客提供帮助
Blog recommendation | Apache pulsar cross regional replication scheme selection practice
How to reset Firefox browser
. Net ultimate productivity of efcore sub table sub database fully automated migration codefirst
Adopt a cow to sprint A shares: it plans to raise 1.85 billion yuan, and Xu Xiaobo holds nearly 40%
关于 appium 启动 app 后闪退的问题 - (已解决)
Users, groups, and permissions
有什么类方法或是函数可以查看某个项目的Laravel版本的?
Leetcode brush question: binary tree 24 (the nearest common ancestor of binary tree)
Leetcode skimming: binary tree 22 (minimum absolute difference of binary search tree)
在字符串中查找id值MySQL
File operation command
Leetcode brush questions: binary tree 19 (merge binary tree)
2022 practice questions and mock examination of the third batch of Guangdong Provincial Safety Officer a certificate (main person in charge)
【无标题】