WebGL doesn't work for my game

The builds of my game works perfectly on Android and Windows, but not the build in WebGL, i can build it but that doesnt work when i upload it on itch.io, a popup appears : (the first 5 screenshots)

And i cant load fully my game on UnityPlay, that stop at 90% :
Console messages errors at the 6th screenshot

Informations : i have tried all Compression Format (Brotlin, Gzip, Disable) and Decompression Fallback (Enable/Disable)

9650621--1373006--Screenshot_2.png
9650621--1373009--Screenshot_4.png
9650621--1373012--Screenshot_5.png


Well, not everything is webgl compatible…

Screenshot of the console messages error when on UnityPlay :

Something in your project appears to be trying to use raw sockets. WebGL doesn’t support them.

2 Likes

Ok but what do you mean ? how can i to know which library/plugin is not compatible with WebGL ?
(my projects is relatively heavy, 4years , i had always builds on Android and PC, never tried in WebGL before… so probably several libraries incompatible

Ok thx but how can i find what ?

firstly for all the things you used you didnt not write, check whether it says it supports webgl, ask them if necessary.
Second, if you have code you could look through it.

1 Like

Important to remind that any platform you intend to target you need to build for and test from the start of the project!

1 Like

Ok but what do you mean ? how can i to know which library/plugin is not compatible with WebGL ?
(my projects is relatively heavy, 4years , i had always builds on Android and PC, never tried in WebGL before… so probably several libraries incompatible

I don’t blame you, Unity advertises to be WebGL compatible, so you’d assume that everything would just work as it does for every other platform. Unfortunately that’s not the case for webgl. If you have webgl in mind, be mindful that several things might not work, and you should take extra care, search and ask if everything you want to use works on webgl builds as well.

Check out my assets !

1 Like

Not everything works for every platform in general. It’s not just WebGL that has limitations, but WebGL has the most commonly used features that most would expect but just won’t be available, like direct file access.