How to Host Unity Games on the Web

Anurag Chawla
2 min readMay 24, 2021

--

In my last article we use build game for PC, Mac & linux..This time we will use WebGL to deploy the game on Web.

Build WebGL and Deploy to a hosting web server..like Github/Simmer.io

To make a WebGL build, go to File > Build Settings and then choose the WebGL platform & Click Build and Settings as shown below.

Build and Deploy using WebGL

Note:If your project uses Linear Color Space, change it to use Gamma in the project settings.

It will add the WebGL Builds /files under the folder that contains as below

Folder contains the WebGL files and folder which we can deploy to GitHub
Add WebGL files and folder to Git Repository

Once these files are committed to the repository , go to Settings /Pages, select the branch and root folder and save it.

Settings->Pages on Github

It will publish the content to the website: https://anuragcin.github.io/WebGL/

When clicked..it will load the WebGL for Unity and play the game and share to the world..!!

Deployed to Github..!!

--

--

Anurag Chawla
Anurag Chawla

Written by Anurag Chawla

Emerging Technologies - Power Virtual Agents | AI Chatbots | Multi-Cloud & DevOps | UI Technologies - React , Angular | Gaming Technolgies - Unity, XR- AR/VR

No responses yet