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

Technical Problem: I cannot build for WebGL

Discussion in 'WebGL' started by Matrix5358, Jan 13, 2020.

  1. Matrix5358

    Matrix5358

    Joined:
    May 9, 2016
    Posts:
    6
    Hi,

    I am using windows environment.
    When I select to build for WebGL, select the folder and subfolder. Unity starts the process but when it finishes, the folder is empty. I am unable to finish projects which have as a requirement that I submit a WebGL build.

    I paused my antivirus program to see if that was the cause but get the same results.

    Thank you.

    Best regards,

    Veronica Chiaravalli
     
  2. Shack_Man

    Shack_Man

    Joined:
    Jun 7, 2017
    Posts:
    368
    I'm often getting trouble when building for webGL. Sometimes it's antivirus, sometimes it's a missing reference in the scene. Add an empty scene to your project and build a version with only that scene. If that works keep adding stuff incrementally and make a new build each time until it fails.
    Probably a very inefficient way to debug, but the output from the console when a build fails has never helped me to trace the error.
     
  3. Billy4184

    Billy4184

    Joined:
    Jul 7, 2014
    Posts:
    5,984
    Are you getting any errors in the console?
     
  4. Matrix5358

    Matrix5358

    Joined:
    May 9, 2016
    Posts:
    6
    Hi,
    I am having problems with this no matter which project I am working on. I just cannot create the build for WebGL.
     
  5. OneManArmy3D

    OneManArmy3D

    Joined:
    Jun 2, 2011
    Posts:
    189
    You MUST have errors in console. Nobody here can help you without seeing errors.
     
  6. Juraj99

    Juraj99

    Joined:
    Oct 7, 2021
    Posts:
    5
    There is no error in the console so I have the same problem when I want to create a set. I'm going through a file - setup sets - to compile (here starts loading something, but when it is completed so nothing will be created will remain a blank folder)
     
    Last edited: Oct 16, 2021
  7. OneManArmy3D

    OneManArmy3D

    Joined:
    Jun 2, 2011
    Posts:
    189
    "file - setup sets - to compile"?
    File => Build Settings => Build