The type or namespace name `UnityEditor' could not be found. Are you missing ...
查找 //using UnityEditor.SceneManagement;是否有引用UnityEditor 不需要的去掉
有需要的 :Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.
注意:这是一个编辑器类,如果想使用它你需要把它放到工程目录下的Assets/Editor文件夹下。编辑器类在UnityEditor命名空间下。所以当使用C#脚本时,你需要在脚本前面加上 "using UnityEditor"引用。 楼主是超人 顶顶多好 说的非常好 很好哦 LZ真是人才 楼主是超人 顶顶多好 难得一见的好帖 不错不错