How to Host Unity Games on the Web

Rook Sullivan
Jun 21, 2021

If you want your game to be playable inside of a browser, first you need to export it from Unity in a compatible format. You can do this by going to your Build Settings and change the platform to WebGL. You may also need to address some compatibility issues before you can build. Unity will then ask you where you want to build. I created a new folder to hold this build of the game, to differentiate it from everything else.

Once the game finishes building, where you chose to save the build, you will have the Build folder, the TemplateData folder, and index.html files. These files can then be hosted on a web server to allow your game to be played upon accessing the website.

--

--