Search Unity

webGL asks to install Firefox while 'in' Firefox

Discussion in 'Web' started by programicks, Apr 17, 2015.

  1. programicks

    programicks

    Joined:
    Sep 5, 2014
    Posts:
    11
    Hi.

    I am attempting to test webGL in Firefox but am getting a message saying I need to install Firefox when I open the index.html page.
    My Firefox version it say is 37.0.1.
    This page http://docs.unity3d.com/Manual/webgl-building.html says it will work in Firefox by opening the html page.
    Please see attached screenshot.
    I was wondering if there was any way round this?

    Cheers.
     

    Attached Files:

  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    In your output folder, check out a file called UnityConfig.js
    Inside that, you'll see how the check if performed - it looks at the user agent your browser is sending, and according to that, as well as some other criteria, determines if the game should be supported or not.

    User agents can be changed (for debugging purposes for example) so check out which user agent your browser is configured to output, it should be one that is "whitelisted" in UnityConfig.js

    Hope this helps :)
     
  3. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    It sounds like WebGL is not supported on your system. Firefox supports WebGL, but it will blacklist some unsupported (usually older) GPUs, and not work on those.
     
  4. Nodnarb3

    Nodnarb3

    Joined:
    Oct 7, 2013
    Posts:
    2
    I am having this issue as well, however I have checked if my graphics card supports WebGL, it does, as well in Firefox I changed it to force WebGL however now it loads the game but does not show anything. I know it loads because I can hear game sounds but no visuals are displayed. I am using Firefox 39.0.3.
     
  5. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    How did you check "if my graphics card supports WebGL"? Does this work?

    https://get.webgl.org