WebGL build gives a blue screen

When I open my game on a browser, the loading screen charges correctly, but then, instead of running the game, a blue screen like the editor background appears.
I’ve uploaded all my scenes and I’m using Uity 2019.3.7f1.
Is there a way to solve this?

Can you be more clear what is happening? What does “the loading screen charges correctly” even mean? Is your scene 0 opening correctly? Do you have the correct scene set to scene 0 in build settings?

@Joe-Censored
By “Loading screen” I mean the Unity icon and the loading bar:


After this, instead of running the game, it only shows this:
5994926--645128--Unity.png
I have indeed the desired scene as scene 0 in the build settings, and, what is weirder, when I build it to “PC, Mac & Linux standalone”, it does work properly.

1 Like

I have the same problem and I figured it out. Try to go to Project Settings → Player → Settings for WebGL → Other Settings → Color Space from gamma to linear → Unmark Auto Graphics API → Remove WebGL 1.0 from Graphics APIs list and try build again

6 Likes

Thanks so much this helped me! How did you ever figure this one out??

1 Like

This worked perfectly, you’re a legend!

Thank you so so much.

Hi,

I bumped into the same problem, but what I was doing wrong is this:-
In the build settings (i.e. after we press ctrl+shift+B in windows) I had the "sample scene selected. I clicked on “add current/opened scene” option right below it, and deleted the sample scene from the build list.
This helped me out. Do let me know if it helped. thanks!

Thanks!

Was precisely my problem