I'm New to WebGL and I Need Some Basic Direction

Hi!

I’m used to the old web build in Unity which no longer works in several browsers. With the web build, you are given an HTML file and a data folder. You hosted the data folder and then changed the HTML so it would know where to find said data folder.

With WebGL… I’m given a bunch of files and folders and I can’t seem to make heads or tales of it. What are the steps I would take to put my unity project onto a website, let alone a wordpress, blog, tumblr, or other post?
I’m not familiar with WebGL or java script so I’m completely in the dark on this. The manual documentation tells me what the WebGL build option is, but not how to use it.

If anyone could give me any sort of information, or have a link to a tutorial, or an example page that walks you through the process of taking the WebGL build files and putting them into a website, I’d be ever so grateful.

Thank you for your time

Here’s a guide I put together on getting started with uploading Unity WebGL games: How to Upload Unity WebGL Content - Alex Ocias Blog

Let me know if anything’s missing or unclear! :slight_smile:

Thanks for the info.

So… if I’m understanding this right, you have to have your own server for WebGL?

Just think of it as a website - any service that lets you upload html games as a folder or zip file should work including itch.io, newgrounds, kongregate etc.

I guess that’s what I’m confused on. Uploading the whole folder?

Basically on game hosting services you usually first zip the index.html and Release folder and TemplateData folder together, then upload the zip. Otherwise, yeah, on your own server just upload the entire build folder containing the above straight up.

It really depends on where you want to put your game.