Search Unity

Question WebGL build runs fine on Firefox but blackscreens on Chromium browsers

Discussion in 'Web' started by Lunkums, Feb 9, 2023.

  1. Lunkums

    Lunkums

    Joined:
    Apr 21, 2017
    Posts:
    2
    I’m having an issue where a game I recently published as a WebGL build is working fine on Mozilla Firefox but results in a black screen on Chromium browsers such as Chrome and Edge (the UI is still visible, but the scene underneath is completely black). This is true on my desktop PC and a dozen other machines on which it was tested. I’m using Unity 2021.3.16f1 and my game is built on the Universal Render Pipeline. I’m targeting WebGL 2 only, and I’ve already tried reducing my memory footprint by compressing textures and audio assets but this had no effect. Does anyone know why my game is only working for some browsers?

    If it would be valuable to look at the game, here’s a link to it: https://lunkums.itch.io/gro

    Edit: Updated from Unity 2021.3.16f1 to 2022.2.5f1 and increased the webGLInitialMemorySize from 32 to 64 and then 128; still no luck.
     
    Last edited: Feb 9, 2023
  2. Lunkums

    Lunkums

    Joined:
    Apr 21, 2017
    Posts:
    2
    Could it be that I'm using a scriptable render feature for a custom pixelize shader (https://github.com/whateep/unity-simple-URP-pixelation)? I have added this shader to the "always include" section of my project which initially fixed the build for Firefox, but Chromium browsers still don't work.