Hosting Games Online: WebGL (Game Dev Day 31)

Jack Leavey
Sep 16, 2021

--

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.

--

--

Jack Leavey
Jack Leavey

Written by 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!

No responses yet