WebGL

I am having a problem with Unity WebGL that I am not sure how to fix.

When I build and run my game, it opens up in a browser and works perfectly, but when I open the Index.html file, it opens a new page in the browser but the game doesn’t load.

If anyone knows how to fix this or if I did anything wrong, it would be a great help.

  1. most browsers (not Firefox) don’t allow loading external JS libs from disk. Start Chrome with “–allow-file-access-from-files” to make it work.
  2. There is a WebGL subforum under Platforms. Better to post your questions there.