The name 'EditorUtility' does not exist in the current context
时间: 2024-05-02 16:16:39 浏览: 13
这个错误通常是因为你的代码中没有正确引入或命名空间(namespace)中的类或方法。你需要检查你的代码,确保你已经正确引入了EditorUtility类所在的命名空间,或者是否正确拼写了该类名。
如果你是在Unity中编写代码,那么EditorUtility类是属于Unity Editor命名空间的,所以你需要在代码开头加入以下引用语句:
```
using UnityEditor;
```
这样就可以在你的代码中使用EditorUtility类了。