Daniel Lip
Daniel Lip

Reputation: 11335

Why I'm getting exception UnityEditor.BuildPlayerWindow+BuildMethodException: 6 errors and how to fix it?

I have unity3d editor version : 2018.4.5f1 Personal

When I'm doing : File > Buil Settings... then Build or File > Build And Run I'm getting after 1-2 seconds exceptions :

First :

Build completed with a result of 'Failed' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Then :

UnityEditor.BuildPlayerWindow+BuildMethodException: 6 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 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

A screenshot of the building window :

Building settings window

Tried to google, I don't have any plugin/s folder in the Assets as someone suggested to delete. Someone else suggested : "use legacy SDK tools" (player settings >> publishing settings" But I can't find anywhere in the editor the publishing settings.

Maybe I should download and update to the latest unity editor version ?

Upvotes: 2

Views: 7014

Answers (3)

ethiel
ethiel

Reputation: 1

In my case, I went to Canvas, (2D Game) selected the animation which was causing the issues, Score. Clicked on Motion and select None. The selected value was Blender, I don't understand why. That solved all the issues.

Upvotes: 0

Gideon
Gideon

Reputation: 31

I also struggled with this, but the following fixed it for me:

  1. Run a search through your entire codebase for "UnityEditor".
  2. Any script that references "UnityEditor" must either be inside a folder called "Editor", or must have all references of "UnityEditor" wrapped in pre-compile flags to exclude them from a build.
  3. By pre-compile flag, I mean something like "#if UNITY_EDITOR" / "#endif".

From this link: https://forum.unity.com/threads/unity-build-errors.663364/

Upvotes: 3

user10865688
user10865688

Reputation:

make sure you don't have a blank script who connect each other script and make sure you don't have an error on your script like missing reference etc, try to update your unity this only my opinion because if I'm getting an error that must be from the script, correct me if I'm wrong

Upvotes: 1

Related Questions