当前位置:网站首页>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
边栏推荐
- test
- Cookie and session comparison
- What if the xshell evaluation period has expired
- Differences between MySQL storage engine MyISAM and InnoDB
- 云检测2020:用于高分辨率遥感图像中云检测的自注意力生成对抗网络Self-Attentive Generative Adversarial Network for Cloud Detection
- 2022a special equipment related management (boiler, pressure vessel and pressure pipeline) simulated examination question bank simulated examination platform operation
- How to reset Firefox browser
- ip2long之后有什么好处?
- ICLR 2022 | pre training language model based on anti self attention mechanism
- 【学习笔记】zkw 线段树
猜你喜欢
共创软硬件协同生态:Graphcore IPU与百度飞桨的“联合提交”亮相MLPerf
.Net下極限生產力之efcore分錶分庫全自動化遷移CodeFirst
“新红旗杯”桌面应用创意大赛2022
明星企业普渡科技大裁员:曾募资超10亿 腾讯红杉是股东
《ASP.NET Core 6框架揭秘》样章[200页/5章]
How to continue after handling chain interruption / sub chain error removed from scheduling
博文推荐|Apache Pulsar 跨地域复制方案选型实践
Leetcode brush questions: binary tree 19 (merge binary tree)
.Net下极限生产力之efcore分表分库全自动化迁移CodeFirst
Sed of three swordsmen in text processing
随机推荐
Leetcode skimming: binary tree 25 (the nearest common ancestor of binary search tree)
Cmu15445 (fall 2019) project 2 - hash table details
ip2long与long2IP 分析
ISPRS2021/遥感影像云检测:一种地理信息驱动的方法和一种新的大规模遥感云/雪检测数据集
“新红旗杯”桌面应用创意大赛2022
ACL 2022 | small sample ner of sequence annotation: dual tower Bert model integrating tag semantics
What kind of methods or functions can you view the laravel version of a project?
Day22 deadlock, thread communication, singleton mode
Sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]
test
MySQL导入SQL文件及常用命令
人均瑞数系列,瑞数 4 代 JS 逆向分析
TPG x AIDU|AI领军人才招募计划进行中!
Initialization script
详细介绍六种开源协议(程序员须知)
共创软硬件协同生态:Graphcore IPU与百度飞桨的“联合提交”亮相MLPerf
PACP学习笔记三:PCAP方法说明
Layer pop-up layer closing problem
. Net ultimate productivity of efcore sub table sub database fully automated migration codefirst
Four functions of opencv