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

"Auto Graphics API" option vanished on iOS Player Settings - Cannot select a specific graphics API

Discussion in 'iOS and tvOS' started by RiccardoAxed, Feb 18, 2021.

  1. RiccardoAxed

    RiccardoAxed

    Joined:
    Aug 29, 2017
    Posts:
    119
    Hi,

    as the thread title suggests, for some reason I can no longer find the "Auto Graphics API" option in Unity 2020.2 (2020.2.1 to 2020.2.4), under iOS Player Settings. As a consequence, I cannot uncheck it to select a specific graphics API.

    The checkbox is regularly present on all other platforms Player Settings, and also in older versions for iOS, as you can see from the screenshots:

    This is from Unity 2020.2.4: no iOS "Auto Graphics API" option
    SnapShot_210218_135825.png


    This is from Unity 2020.1.16: iOS "Auto Graphics API" option is present
    SnapShot_210218_135719.png

    Have you some hints about that issue?
     
    tungnt_unity967 likes this.
  2. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,602
    there is no api choice anymore - only metal is supported
     
  3. efe_akpofure

    efe_akpofure

    Joined:
    Oct 7, 2020
    Posts:
    1
    I am trying to use the Google VR Cardboard SDK but it needs me to enable either OpenGLES2 or OpenGLES3 the option is no longer there.. don't know how to go about this, building succeeds on unity but in Xcode, it doesn't because the GVR Cardboard SDK has dependencies tied to OpenGLES2 and OpenGLES3!

    I have to say, it's kind of frustrating how features just get removed subtly in unity with each update, and sadly, they seem little but are heavily significant.
     
  4. DrewFitz

    DrewFitz

    Joined:
    Dec 9, 2016
    Posts:
    30
    This isn’t Unity’s fault. Apple deprecated OpenGL on all platforms. It looks like Google released a Metal version of the SDK here: https://github.com/googlevr/cardboard-xr-plugin/releases
     
  5. r137

    r137

    Joined:
    Mar 12, 2018
    Posts:
    43
    Is there any workaround for older titles published on App Store with OpenGLES? Apple does not accept to upgrade to Metal and gives this error message:


    Only way to solve this issue was unchecking the Auto graphics api box and adding OpenGLES manually but now we can't do that in Unity 2020. Is there any recommendation for this issue?
     
  6. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,602
    Yes, for older titles you stay on older version of unity
     
    r137 likes this.
  7. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,004
    You could raise the minimum iOS version.
     
  8. r137

    r137

    Joined:
    Mar 12, 2018
    Posts:
    43
    Can I raise the iOS version and drop OpenGLES2 support and migrate to Metal? I tried that but got the same error. Can you give any tips? What iOS should be used? Do I need to remove Metal from UIRequiredDeviceCapabilities? I guess this causes the main issue.
     
  9. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,004
    I think so. Raise iOS enough so that non-metal devices are out, but make sure your plist requirements are the same as before (so if Unity adds the metal requirement, remove it).
     
    r137 likes this.
  10. r137

    r137

    Joined:
    Mar 12, 2018
    Posts:
    43
    Thanks for your help. I raised minimum iOS version to 11, only included Metal in build and deleted Metal from info.plist manually. I published this version without any issue. I am still using 2019 for now but I think it is possible to upgrade to 2020.
     
    AcidArrow likes this.
  11. codestage

    codestage

    Joined:
    Jul 27, 2012
    Posts:
    1,906
    Hey Alexey, would be nice to fix it not working in Simulator then..
    I've submitted a bug Case 1358462, would be glad to know if it could be fixed!
     
  12. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,602
    Works fine for me. Maybe try on a simulator with the latest ios version? (14.5 iirc for xcode 12.5)
     
    Last edited: Aug 17, 2021
  13. codestage

    codestage

    Joined:
    Jul 27, 2012
    Posts:
    1,906
    Last edited: Aug 17, 2021
  14. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,602
    you have this "Графика: Монитор 128 МБ" in System Information, are you running on VM? IIRC metal is not supported on macos VM at all (well, for example, your editor clearly says that it runs on opengl). You can try some "random" xcode project using metal on simulator to check, for example "Supporting Simulator in a Metal App" on https://developer.apple.com/metal/sample-code/
     
  15. codestage

    codestage

    Joined:
    Jul 27, 2012
    Posts:
    1,906
    Yes I'm using VM to work with macOS using Windows PC.

    Thanks for pointing this out, but it does means we are not able to use iOS Simulator from Windows PC anymore thus we just can't test anything against iOS platform without having real iOS device or mac PC, which is a sad loss comparing to the earlier Unity versions which had Metal alternatives and worked in Simulator just fine =(

    Does it going to stay this way or something is possible to do in order to revive iOS Simulator support in VMs?
     
  16. Thanitsak

    Thanitsak

    Joined:
    Jan 4, 2016
    Posts:
    110
    Hey Alexey, I just noticed that "Behaviour in Background" got removed on iOS Player Settings under Others/Configuration section. Any idea how to deal Background behaviour on the newer version?
     
  17. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,602
    True story: i got as surprised as you (my first reaction was "are they kidding me?" ;-))
    Turns out it was renamed: search for "Enable Custom Background Behaviors" toggle (near the end of Configuration subsection): if you toggle it it will show extra ones for background behaviors.
     
  18. Thanitsak

    Thanitsak

    Joined:
    Jan 4, 2016
    Posts:
    110
    Hahaha same xD, I see thanks!!!
     
  19. geniusz

    geniusz

    Joined:
    Nov 21, 2014
    Posts:
    38
  20. Kapteeni-Studios

    Kapteeni-Studios

    Joined:
    Apr 5, 2014
    Posts:
    39
    Hi Alexey,

    I think it's only a matter of time that you have to move on from Unity 2019 to newer ones that only support metal. Right now you can't use Unity 2019 anymore on Google Play if you want to use Unity IAP. With Google there is no problem but what about Apple?

    What can you do when you have to move on from Unity 2019 in the future?

    If you have popular games, do you need to publish two different versions of those games on the App Store? The original that was build with Unity 2019, and new that was build with newer Unity? That would also mean that you no longer could keep updating the older versions and the players having that version would be stuck. The new versions of the game would also need to have a different name on the App Store. The game's name is a big deal of course and it would look bad to name it something like: Your Game (new version)

    There must be games that were build with Unity 2019 or less and that are now facing this problem on the App Store. Do you have any recommendations on how to move forward with this issue?
     
  21. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,602
    Quite honestly, i dunno. You should ask Apple as the problem here mostly lies with them. Their handling of "app updates" versus requirements is "complicated" to put it mildly. In ios12 they deprecated opengl es completely, and iirc ios11 already was not available on devices not supporting metal (maybe it was ios12 too).
    So in some regard i would *assume* they would be fine with you setting min ios version to ios 12,and removing gles, BUT you need to ask them (i am at the same boat as you regarding this - i dont have access to apple "review board" to get firm answers
     
  22. Neonlyte

    Neonlyte

    Joined:
    Oct 17, 2013
    Posts:
    505
    App Store does allow removing support of older devices by bumping the minimum iOS version.
    https://developer.apple.com/library/archive/qa/qa1623/_index.html
     
    Last edited: Sep 22, 2022