How to Host Unity a Webgl Game on Github for Free

preview_player
Показать описание
How to Host Unity a Webgl Game on Github for Free

Greetings, in this Github tutorial we shall be looking at how to host a unity webgl game on github so anyone can play the game in a web browser. This method is free.

If you don't have a github account, make one. We want to then create a new github repo. We will be uploading our unity webgl game to this. The repo needs to be public as github pages is only free for public github repos.

Now we need to drag and drop all of our unity webgl build files into the repo. You can upload the files via other software like github desktop or source tree if you want.

After that we need to go to the github repo settings. We need to go to the pages section and setup our github page for this repo. After we have setup the github page, you will need to wait a few minutes.

Now just type in a url into your web browser to play your github hosted unity webgl game. Url template:

This tutorial is great if you want to test your unity webgl game in the browser or to share your unity webgl game with friends.

Thanks for watching this tutorial on how to upload a unity webgl game onto github and host the game for free using github pages.

Host Unity a Webgl Game on Github for Free
How to Host Unity a Webgl Game on Github for Free
Рекомендации по теме
Комментарии
Автор

You just saved my ass, Sir!! Keep it up! Cheers!! (:

lifehackluca
Автор

My game doesn't show the video bg, only buttons. How do I solve this?

johnkennethlaunio
Автор

Thanks for sharing this! I never knew it was a feature.
However I can't get my WebGL build to run -- it always posts the error:
"Unable to parse The file is corrupt, or compression was misconfigured? (check Content-Encoding HTTP Response Header on web server)"

Usually this can be solved by enabling decompression fallback, but that didn't seem to be the case here. Any idea what might be going wrong here?

owencoopersfx