Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

webgl 2022.1 won't work in firefox but works fine in chrome

Discussion in 'WebGL' started by dansav, Sep 2, 2022.

  1. dansav

    dansav

    Joined:
    Sep 22, 2005
    Posts:
    499
    I have a webgl game that works fine in chrome, but in firefox the models load then immediately disappear as if something is not initializing correctly.

    I tried gz and disabled compression same result
    data cache on or off

    Why is there a difference between platforms and how do I debug this?
    The console has no errors.

    Firefox 104.
     
    Last edited: Sep 2, 2022
  2. dansav

    dansav

    Joined:
    Sep 22, 2005
    Posts:
    499
    I increased the initial memory in the webgl build settings from 32 to 64, and forced it to use Webgl 2.0. One of those seemed to fix the issue, now they're both behaving the same -- either that or it was some cache problem and one of them was using an older version. I threw out the cache on both browsers also. If you're having problems that seem to come and go the more you refresh the page it could be one of these fixes.