Hosting Games Online: WebGL (Game Dev Day 31)

Objective: Build Unity project with compatibility for Web based hosting.

Setting your project for WebGL is very simple and similar to how you would build for any other platform.

You need to use the Switch Platform option on the bottom right before you can build.

Use the switch platform option on the bottom right and wait for your project to recompile. If there are any fatal errors you will be alerted during this stage.

Once it has recompiled, build it and save it to your preferred location. You can then host the build folder on a personal website or Unity’s “Unity Play”. Using HTML5, you can imbed the files into your site. Make sure to test it out yourself once you post it, in case there are any issues for the end user.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jack Leavey

I am a software engineer with years of experience branching into game development, specifically in Unity. Follow along for guides on creating game mechanics!