Webgl build

hey can anyone help me with my WebGL builds they work only one after hitting build and run then they never work again

Hey there. Try to provide more information, so people can assist you. Did you check the log on the console? Take a print of that and post it here.

If your page only loads up when you do a Build and Run, but never when you load it up from Windows Explorer, or when navigating to the page when Unity Editor is closed - maybe the issue is that you are missing a web server to host the page outside Unity Editor build process?

If so, you can try using an ad hoc node.js or python web server if you have one of those installed. E.g. https://raw.githubusercontent.com/emscripten-core/emscripten/master/emrun.py is a good one designed for this purpose:

  1. Install python, make sure it is enabled in PATH,
  2. download emrun.py to the Unity project root directory,
  3. open a command prompt/console/terminal window, and navigate to the project root directory,
  4. run “python emrun.py --no_browser .”
  5. navigate browser to the page that is printed in the console window.