Reputation: 121
I can't build my Unity program. I click "Build and Run" and get error:
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:194
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:97 UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
Unity is installed on disk. And by path C:\buildslave\unity\build.... I don't have anything.
Upvotes: 0
Views: 469
Reputation: 26
I have seen a lot of different answers, but in my case, when building to Standalone, it turned out I left the game running from the previous build and it was preventing the new build from creating an executable.
Same 2 errors [0x00242] and [0x0007f]. I just had to close the game...
Upvotes: 1