- Home /
I cannot get my project to build for PC
This is what happens after I try to build, Please help!
Console:
UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0021f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:182 at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00065] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:89 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Answer by NoDumbQuestion · Jun 05, 2018 at 06:45 AM
Look at the 1st error: The assembly UnityEditor cannot exist in build.
Any of your script have using UnityEditor;
will make the build failed. Remove it or change it to
#if UNITYEDITOR
using UnityEditor;
#endif
Thank you!! I deleted some of the editor things and it worked!
Your answer
Follow this Question
Related Questions
Runs fine in editor but terribly slow as build. 0 Answers
Old build present after building to a new folder on desktop. 0 Answers
Unity 2017.1.0f3 personal 64bit Does Not build to android 0 Answers
Help me! I wanted to build my project, but it gives this error.How can I fix it? 1 Answer
[Unity 2017.3.0f3] Cannot open my build it Crashes (with crash Raport) 1 Answer