Build game in Unity Web GL

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Mchia_Soo
Posts: 72
Joined: Sun Jun 30, 2019 11:59 pm

Build game in Unity Web GL

Post 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?
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Build game in Unity Web GL

Post by Tony Li »

Hi,

No changes needed. It works fine in WebGL.
Mchia_Soo
Posts: 72
Joined: Sun Jun 30, 2019 11:59 pm

Re: Build game in Unity Web GL

Post 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?
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: Build game in Unity Web GL

Post 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.
Post Reply