On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Unity WebGL Error

A topic by Hemayah created May 29, 2022 Views: 191 Replies: 4
Viewing posts 1 to 5
Submitted

when I build my project as a WebGL in unity it give me some Errors  So what can I do?

(Errors when I open HTML file  not in the Engine(Unity))

I can build it as Windows but I want it in browser too

Submitted

Does the build complete or are there errors?

You have to make sure that the zip file has the "index.html" on it's top level and you've added all folders from the WebGL build.

Submitted

My game was stopping at 90% and never running on the Web. Sounds like it’s an issue with the compression settings. I followed this to get it to work.

Submitted

Yeah ensure compression is turned off (disabled) in player settings.

Submitted

I used the Gzip compression for my WebGL build and it seems to be working just fine.

The original post makes it seem like you are only uploading the HTML file, but you actually need to zip the entire folder which was created during the build process and upload that.

Here's a quick video I found which shows what I mean at the 0:20 mark: