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

Official WebGL 1 Deprecation

Discussion in 'WebGL' started by anthony_b_, Feb 2, 2022.

Thread Status:
Not open for further replies.
  1. anthony_b_

    anthony_b_

    Unity Technologies

    Joined:
    Oct 27, 2020
    Posts:
    23
    In version 2021.2, Unity marked support for the WebGL 1 Graphics API as deprecated. In Unity 2021.2, there are no changes in behavior and Unity still includes the WebGL 1 Graphics API if you enable the Auto Graphics API Player Setting.

    In Unity 2022.1, the WebGL 1 graphics API is no longer included in the Auto Graphics API setting. If you need to add support for WebGL 1 to your project, open the Player Settings and under Player -> Other Settings, uncheck the Auto Graphics API option and explicitly add “WebGL 1 (Deprecated)” to the Graphics API list.

    Our plan is to remove support for WebGL 1 entirely in Unity 2023.1
     
    Mauri and PutridEx like this.
  2. Marks4

    Marks4

    Joined:
    Feb 25, 2018
    Posts:
    491
    Why? Safari got WebGL 2 on iOS 15, not long ago. You can expect webgl1 to be predominant on Safari for a while. Give it like 5 years or something before removing it.
     
  3. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,067
    iOS 15 is supported all the way down to the 6S, which was released more than 6 years ago.

    You can release WebGL 1 content with a supported Unity version (2022LTS) until roughly late spring/summer of 2025.

    Do you really believe that after that there is going to be significant market share of WebGL 1-only 10+ plus years old iOS devices left?
     
  4. jRocket

    jRocket

    Joined:
    Jul 12, 2012
    Posts:
    687
    Currently, about the same number of people are running desktop Safari that doesn't support WebGL 2 than running Safari that does support it. Many people just don't want to upgrade.

    https://caniuse.com/webgl2
     
  5. KamilCSPS

    KamilCSPS

    Joined:
    May 21, 2020
    Posts:
    376
    The number of safari users at all is marginal too. So it's only a subset of a subset. And nothing stops anyone from staying with a LTS version of 2023.1 until they can migrate their project to WebGL2.

    I already feel it's way too generous to keep it until 2023 at all. Should have been depreciated in current LTS cycle already.
     
    OneManArmy3D, JoNax97 and PutridEx like this.
  6. Marks4

    Marks4

    Joined:
    Feb 25, 2018
    Posts:
    491
    Exactly what this guy said.

    @Schubkraft Unfortunately I can't just tell my client to upgrade his phone. That is *not* how it works, trust me I tried. The same issue happened with the web share api level 2, which only became available on iOS 15. I told my client to tell his clients to simply upgrade their phones, but that's not an acceptable solution for them. Gotta develop to support older phones because people like to make devs suffer and facepalm.

    This is a strong argument as well. Gonna be using this one in the future.
     
  7. anthony_b_

    anthony_b_

    Unity Technologies

    Joined:
    Oct 27, 2020
    Posts:
    23
    To reiterate what @Schubkraft said. We will support making builds with WebGL 1 support through Unity 2022 LTS which will be supported until roughly late spring/summer of 2025.

    If you have use cases where you plan to need features from Unity 2023 (or later) and need to target a user base that requires WebGL 1 support, we'd be interested to hear from you.
     
    De-Panther likes this.
  8. kjempff

    kjempff

    Joined:
    Aug 14, 2013
    Posts:
    3
    Many users just don't do software updates on their devices.
    Therefore, in 2025 there will still be some percentage of users who will not be able to run webgl2, and I can guarantee that if they have not updated by then, they will not go through the hassle just to play your game.
    What percentage that is, I have no idea (some doctor stole my time machine).
     
  9. LeFx_Tom

    LeFx_Tom

    Joined:
    Jan 18, 2013
    Posts:
    88
    This is a hypothetical problem and I think you have to sacrifice backward compatibility for the sake of progress, if the timeframes are chosen as carefully as they are done here. 2025 is ages in technology progress terms
     
    xucian likes this.
  10. vriog

    vriog

    Joined:
    Dec 6, 2014
    Posts:
    29
    If I can chime in as well, I would like to see WebGL 1 supported as well. The game my team is working on is played by players with lower end hardware and it would be great to have as much support for legacy as possible.
     
  11. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,106
    adamgolden likes this.
Thread Status:
Not open for further replies.