当前位置:网站首页>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
边栏推荐
- [learn microservices from 0] [03] explore the microservice architecture
- layer弹出层的关闭问题
- HZOJ #235. Recursive implementation of exponential enumeration
- Initialization script
- [difficult and miscellaneous]pip running suddenly appears modulenotfounderror: no module named 'pip‘
- 基于鲲鹏原生安全,打造安全可信的计算平台
- test
- ip2long与long2IP 分析
- Leetcode question brushing: binary tree 26 (insertion operation in binary search tree)
- Analysis of DHCP dynamic host setting protocol
猜你喜欢

. Net ultimate productivity of efcore sub table sub database fully automated migration codefirst

Day22 deadlock, thread communication, singleton mode

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

Leetcode skimming: binary tree 27 (delete nodes in the binary search tree)

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

《开源圆桌派》第十一期“冰与火之歌”——如何平衡开源与安全间的天然矛盾?
![[untitled]](/img/6c/df2ebb3e39d1e47b8dd74cfdddbb06.gif)
[untitled]

ACL 2022 | small sample ner of sequence annotation: dual tower Bert model integrating tag semantics

达晨与小米投的凌云光上市:市值153亿 为机器植入眼睛和大脑

日本政企员工喝醉丢失46万信息U盘,公开道歉又透露密码规则
随机推荐
. Net ultimate productivity of efcore sub table sub database fully automated migration codefirst
regular expression
Find ID value MySQL in string
货物摆放问题
如何将 @Transactional 事务注解运用到炉火纯青?
Leetcode skimming: binary tree 20 (search in binary search tree)
SSM框架搭建的步骤
Grep of three swordsmen in text processing
Adopt a cow to sprint A shares: it plans to raise 1.85 billion yuan, and Xu Xiaobo holds nearly 40%
Image pixel read / write operation
[learn microservice from 0] [01] what is microservice
ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
Day22 deadlock, thread communication, singleton mode
Awk of three swordsmen in text processing
Ip2long and long2ip analysis
Smart cloud health listed: with a market value of HK $15billion, SIG Jingwei and Jingxin fund are shareholders
How to reset Google browser? Google Chrome restore default settings?
用mysql查询某字段是否有索引
达晨与小米投的凌云光上市:市值153亿 为机器植入眼睛和大脑
Initialization script