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

Graphics in Safari gets distorted

Discussion in 'WebGL' started by ajeet09, Sep 23, 2020.

  1. ajeet09

    ajeet09

    Joined:
    May 18, 2020
    Posts:
    4
    Hi,

    I have created a webl for my game, while running it on chrome or firefox it's running correctly, But when it runs on Safari browser then , it's graphic gets distorted, it seems very poor, I have attahced screenshot for it, please have a look, and help.
     

    Attached Files:

  2. atorres1986

    atorres1986

    Joined:
    Nov 24, 2016
    Posts:
    2
    I think it's a problem with the Safari itself. Maybe you should test making the build in asm.js it is more compatible with older browsers.
     
  3. ajeet09

    ajeet09

    Joined:
    May 18, 2020
    Posts:
    4
    But I'm using unity version 2019.4, for using asm.js, i will be needed to downgrade my game to 2017 unity version
     
  4. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    944
    You do not need to downgrade to build asm.js. While the option to enable asm.js is no longer there because it creates so large code sizes, you can still use an Editor script to target asm.js. Attaching here a script that enables doing that. See the instructions inside the file.
     

    Attached Files:

  5. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    944
    Does the issue occur in Chrome and/or Firefox on desktop computers if you remove Auto Graphics API in Player settings, and restrict to WebGL 1? If so, that suggests a general WebGL 1 limitation (iOS does not support WebGL 2).
     
    De-Panther likes this.