当前位置:网站首页>Unity 构建错误:当前上下文中不存在名称“EditorUtility”
Unity 构建错误:当前上下文中不存在名称“EditorUtility”
2022-07-07 10:46:00 【charlsdm】
您现在出现错误的原因是,Unity 在为其设计的编译时删除了“UnityEditor”命名空间。这就是为什么当您尝试在平台上使用它时,“EditorUtility”将永远不会存在于除 UnityEditor 之外的任何平台上。因为“EditorUtility”在“UnityEditor”命名空间中。
因此,如果您想使用“EditorUtility”执行与在 Unity 编辑器中所做的相同的工作,您应该像他们一样实现它。
#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
边栏推荐
- [statistical learning method] learning notes - support vector machine (Part 2)
- Static vxlan configuration
- 【PyTorch实战】用PyTorch实现基于神经网络的图像风格迁移
- [binary tree] delete points to form a forest
- [statistical learning methods] learning notes - improvement methods
- Day-20 file operation, recursive copy, serialization
- 2022-07-07 Daily: Ian Goodfellow, the inventor of Gan, officially joined deepmind
- Leetcode question brushing: binary tree 26 (insertion operation in binary search tree)
- Leetcode skimming: binary tree 23 (mode in binary search tree)
- Realize a simple version of array by yourself from
猜你喜欢
Vxlan static centralized gateway
Cookie
[deep learning] image multi label classification task, Baidu paddleclas
Multi row and multi column flex layout
leetcode刷题:二叉树25(二叉搜索树的最近公共祖先)
3D content generation based on nerf
博文推荐|Apache Pulsar 跨地域复制方案选型实践
opencv的四个函数
Leetcode brush questions: binary tree 19 (merge binary tree)
leetcode刷题:二叉树20(二叉搜索树中的搜索)
随机推荐
ICLR 2022 | 基于对抗自注意力机制的预训练语言模型
layer弹出层的关闭问题
Decrypt gd32 MCU product family, how to choose the development board?
Leetcode brush questions: binary tree 19 (merge binary tree)
[difficult and miscellaneous]pip running suddenly appears modulenotfounderror: no module named 'pip‘
ICLR 2022 | pre training language model based on anti self attention mechanism
Importance of database security
【从 0 开始学微服务】【02】从单体应用走向服务化
NPM instal reports agent or network problems
图形对象的创建与赋值
Cryptography series: detailed explanation of online certificate status protocol OCSP
ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
On valuation model (II): PE index II - PE band
[deep learning] image multi label classification task, Baidu paddleclas
【从 0 开始学微服务】【03】初探微服务架构
What if does not match your user account appears when submitting the code?
Pule frog small 5D movie equipment | 5D movie dynamic movie experience hall | VR scenic area cinema equipment
HZOJ #240. Graphic printing IV
Leetcode skimming: binary tree 22 (minimum absolute difference of binary search tree)
2022A特种设备相关管理(锅炉压力容器压力管道)模拟考试题库模拟考试平台操作