How to Host Unity Games on the Web

Dennisse Pagán Dávila
Level Up Coding
Published in
3 min readMay 15, 2021

--

In the previous article, I went over how to use the Unity Build Settings to create a test version of your game or application which can be fully executed directly from your computer. Now, it’s time to learn how to make it sharable online!

Installing WebGL

Objective: Make a shareable version of your game or application.

  1. Install WebGL if you don’t have it available already. If you already have it installed, skip to Deployment using WebGL.

To install, go to File → Build Settings → Platform → WebGL → Install with Unity Hub

2. Make sure the WebGL Build Support is selected then click on “Done”.

3. Once the installation process is finished, you will see that the WebGL has been added to the Unity version you’re currently using.

Deployment using WebGL

  1. Switch the platform to WebGL and allow Unity to recompile.

Note: If WebGL appears to be uninstalled, restart Unity.

2. Once Unity is done recompiling, you will need to change the player settings as advised by the warning.

3. With all desired changes in place, you can now build the WebGl version of your game/app!

Now, you should have a folder with all the necessary contents. and allows multiple formats.

Should you own a website, these folders can be uploaded to it and you can actually see your game load within it. You can also upload it to Simmer.io which only allows WebGLs, or Itchi.io which is popular among indie developers

In the next article, I will go over how to add an escape feature for your game or application!

--

--

Software Engineer that specialize in Game Development. Currently looking for new opportunities. LinkedIn: https://rb.gy/xdu8nu