Hello. I’ve got a problem with launching my games made with Unity in a browser.
Or more specifically, games embedded in HTML pages on my computer don’t launch at all. And all I get is this message:
It seems your browser does not support running Unity WebGL content from file:// urls. Please upload it to an http server, or try a different browser.
This happens in Firefox, Google Chrome, Opera, Internet Explorer. Only in Microsoft Edge, my games are still working. I think three or four days back everything was fine - I’ve launched some of my games. But now, here is this.
So. What the hell is happening? How do I fix the problem?
I have the same story. All browsers were working before with WebGL. I’m unsure why it’s saying it’s not supported now. All my browsers are up to date too.
I might have to download Firefox then.
If you do build and run unity starts a small server in the background that is hosting the webpage and the webgl export so you can access it via your localhost adress.
That you can not just open the file in your webbroser is because most of the major browser do value the users security more than the super slim chance that you might be opening a local html file.
If you like to host the file on your pc more permanently you can install a lightweight webserver to host your webgl build.
(my personal preference is XAMPP )
That’s probably the easiest way to do it.
Once you have your server running on local host, we can use https://ngrok.com/ with the same server port in order to access the build over the internet