当前位置:网站首页>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
边栏推荐
- MySQL导入SQL文件及常用命令
- [pytorch practice] image description -- let neural network read pictures and tell stories
- [binary tree] delete points to form a forest
- Several ways to clear floating
- Design and implementation of communication protocol
- CMU15445 (Fall 2019) 之 Project#2 - Hash Table 详解
- 2022广东省安全员A证第三批(主要负责人)考试练习题及模拟考试
- 聊聊Redis缓存4种集群方案、及优缺点对比
- [learn microservice from 0] [01] what is microservice
- 广州市召开安全生产工作会议
猜你喜欢

leetcode刷题:二叉树23(二叉搜索树中的众数)

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

visual stdio 2017关于opencv4.1的环境配置
![[statistical learning method] learning notes - support vector machine (I)](/img/3f/56db88d717d7cd6624b3d0867146e9.png)
[statistical learning method] learning notes - support vector machine (I)
![[crawler] avoid script detection when using selenium](/img/3a/85ea729be2aa76c3de4a822ca6939b.png)
[crawler] avoid script detection when using selenium

How to use PS link layer and shortcut keys, and how to do PS layer link

Talk about four cluster schemes of redis cache, and their advantages and disadvantages

Vxlan static centralized gateway

leetcode刷题:二叉树20(二叉搜索树中的搜索)

Cookie
随机推荐
ACL 2022 | small sample ner of sequence annotation: dual tower Bert model integrating tag semantics
3D content generation based on nerf
HZOJ #236. 递归实现组合型枚举
NPM instal reports agent or network problems
2022聚合工艺考试题模拟考试题库及在线模拟考试
【从 0 开始学微服务】【03】初探微服务架构
基于NeRF的三维内容生成
How does MySQL create, delete, and view indexes?
leetcode刷题:二叉树26(二叉搜索树中的插入操作)
智云健康上市:市值150亿港元 SIG经纬与京新基金是股东
广州市召开安全生产工作会议
Leetcode skimming: binary tree 22 (minimum absolute difference of binary search tree)
Object. Simple implementation of assign()
Simple implementation of call, bind and apply
leetcode刷题:二叉树23(二叉搜索树中的众数)
[statistical learning methods] learning notes - Chapter 4: naive Bayesian method
The URL modes supported by ThinkPHP include four common modes, pathinfo, rewrite and compatibility modes
[difficult and miscellaneous]pip running suddenly appears modulenotfounderror: no module named 'pip‘
opencv的四个函数
【统计学习方法】学习笔记——第五章:决策树