How to Host Unity Games on the Web

Renato Figueiredo
2 min readDec 11, 2023

Objective: Learn to build our game for WebGL.

So now we want to build our game for WebGL. How can we do this ?
First, we need to make sure we are on the proper platform for the build.

Changing our Platform to WebGL.

Just a note, in case you don’t have the Switch Platform option, make sure to Install with Unity Hub first, so such option will appear.

Now Unity will recompile our game for WebGL, this may take a couple of minutes.

Now we just need to build. But wait, we can’t click on Build yet, as it seems that we have a incompatibility issue that needs to be resolved. In order to fix this, we have to change our Color Space back to Gamma for WebGL builds.

Changing our Color Space back to Gamma.

Now that this is resolved, we just have to build our game, create a folder for this new WebGL build, and we’re good to go.

Building our game for WebGL.

And there you have it, now you have your build for WebGL.

Our folder with the WebGL build.

You could upload this file and two folder to a web server so others could have access to your game!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response