Quantcast
Channel: Questions in topic: "build"
Viewing all articles
Browse latest Browse all 4084

Loadlevel is obsolete, but can't build if i use loadscene

$
0
0
Hello, I'm a beginner. I want to use a restart button. If I use the method Application.Loadlevel, the compiler would tell me it's obsolete. But if I use EditorSceneManager.LoadScene, when I build, there will be errors like "Error building Player because scripts had compiler errors" and "error CS0246: The type or namespace name `UnityEditor' could not be found. Are you missing an assembly reference?". What should I do? P.S. I use Mac, and I can build successfully in MonoDevelopment-Unity. Thanks

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>