当前位置:网站首页>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
边栏推荐
- . Net ultimate productivity of efcore sub table sub database fully automated migration codefirst
- Leetcode skimming: binary tree 21 (verifying binary search tree)
- ORACLE进阶(五)SCHEMA解惑
- 飞桨EasyDL实操范例:工业零件划痕自动识别
- HZOJ #236. 递归实现组合型枚举
- PHP calls the pure IP database to return the specific address
- [learn wechat from 0] [00] Course Overview
- Layer pop-up layer closing problem
- Day22 deadlock, thread communication, singleton mode
- File operation command
猜你喜欢
Sed of three swordsmen in text processing
Leetcode question brushing: binary tree 26 (insertion operation in binary search tree)
如何将 @Transactional 事务注解运用到炉火纯青?
日本政企员工喝醉丢失46万信息U盘,公开道歉又透露密码规则
Visual stdio 2017 about the environment configuration of opencv4.1
. Net ultimate productivity of efcore sub table sub database fully automated migration codefirst
Aosikang biological sprint scientific innovation board of Hillhouse Investment: annual revenue of 450million yuan, lost cooperation with kangxinuo
Sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]
Cookie
Leetcode skimming: binary tree 27 (delete nodes in the binary search tree)
随机推荐
TPG x AIDU|AI领军人才招募计划进行中!
“新红旗杯”桌面应用创意大赛2022
File operation command
ip2long之后有什么好处?
Coscon'22 community convening order is coming! Open the world, invite all communities to embrace open source and open a new world~
高瓴投的澳斯康生物冲刺科创板:年营收4.5亿 丢掉与康希诺合作
Analysis of DHCP dynamic host setting protocol
The difference between cache and buffer
《开源圆桌派》第十一期“冰与火之歌”——如何平衡开源与安全间的天然矛盾?
MySQL importing SQL files and common commands
飞桨EasyDL实操范例:工业零件划痕自动识别
The URL modes supported by ThinkPHP include four common modes, pathinfo, rewrite and compatibility modes
博文推荐|Apache Pulsar 跨地域复制方案选型实践
详细介绍六种开源协议(程序员须知)
[untitled]
关于 appium 启动 app 后闪退的问题 - (已解决)
What kind of methods or functions can you view the laravel version of a project?
Importance of database security
红杉中国完成新一期90亿美元基金募集
Session