Search Unity

Detect if device supports ARKit or ARCore?

Discussion in 'AR' started by SpiderJones, Mar 2, 2019.

  1. SpiderJones

    SpiderJones

    Joined:
    Mar 29, 2014
    Posts:
    244
    Is there a method for detecting if a device supports ARKit or ARCore?

    Thanks!
     
  2. mekin

    mekin

    Joined:
    Mar 5, 2019
    Posts:
    11
    In ARFoundation, you can check for availability on both iOS and Android. See this post describing how.
     
  3. evgro

    evgro

    Joined:
    Oct 5, 2016
    Posts:
    7
    Also, you can use ARSupportChecker plugin to do that easily this way:
    Code (CSharp):
    1. ARSupportChecker.IsSupported()
     
  4. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,142
  5. evgro

    evgro

    Joined:
    Oct 5, 2016
    Posts:
    7
    Answered you there. The method with ARSession.CheckAvailability() can return false positive result. You can reproduce such behaviour on Redmi Note 5 and some other Xiaomi devices. On the other hand on the most devices this package is undeletable and preinstalled. You can see that in the description of the package and in reviews of users that cannot uninstall it here -> https://play.google.com/store/apps/details?id=com.google.ar.core