Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity 2019.1.1f1 WebGL build failed : 'UnityEditor.BuildPlayerWindow+BuildMethodException'

Discussion in 'WebGL' started by ghost-lemon, May 10, 2019.

  1. ghost-lemon

    ghost-lemon

    Joined:
    Mar 6, 2015
    Posts:
    1
    Hi everyone,
    I'm having this error when trying to do a webGL build using Unity 2019.1.1f1 :

    UnityEditor.BuildPlayerWindow+BuildMethodException: 5 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)

    I've already tried to reimport all assets and reinstall Unity but it still does not work. Also it comes from my project because when I do an new empty Unity project and do a webGL build it works.
     
  2. rudylee94

    rudylee94

    Joined:
    Sep 8, 2015
    Posts:
    5
    pls upload your error log.so that we can help you.
     
  3. rahul20dec

    rahul20dec

    Joined:
    Jul 8, 2018
    Posts:
    9
    I had the same issue. Try removing all the unnecessary packages (like ads and multiplayer hlapi) using package manager (Menu-->Window-->Package Manager). Also the build directory path should not have spaces or special characters. I choose Desktop as my build location. :)
     
  4. tornikemeparishvili

    tornikemeparishvili

    Joined:
    Nov 29, 2020
    Posts:
    1
    thanks man, you saved my life, thank you soooooooo much