Page 1 of 1

Build game in Unity Web GL

Posted: Wed Jul 22, 2020 7:16 am
by Mchia_Soo
Hey Tony.

I'm wondering, is there any changes in Dialogue System and Quest Machine to be made if I want to build the game for the browser?

Re: Build game in Unity Web GL

Posted: Wed Jul 22, 2020 8:45 am
by Tony Li
Hi,

No changes needed. It works fine in WebGL.

Re: Build game in Unity Web GL

Posted: Mon Aug 10, 2020 5:49 am
by Mchia_Soo
Thanks for your prompt reply. I have built my game, but the error below keeps showing up every time I click on the game.

"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."

Any other reasons that cause this issue to happen? What settings do you think I should change on my game?

Re: Build game in Unity Web GL

Posted: Mon Aug 10, 2020 8:36 am
by Tony Li
That's normal for any Unity WebGL build.

If you select Build & Run instead of Build, Unity will build the game and start up a local web server to play it. This will let you test it locally.

However, after testing, you'll eventually want to upload it to a server such as your own web server or itch.io or something like that.