Search Unity

  1. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

With ARFoundation is there a way to check if an IOS device has TrueDepth via code?

Discussion in 'AR/VR (XR) Discussion' started by sskenth, May 21, 2020.

  1. sskenth

    sskenth

    Joined:
    Sep 23, 2016
    Posts:
    50
    Hi

    I can't seem to find anything in the docs here.

    I don't want to have to check for every individual IOS device that I know has TRUEDEPTH. I'm just looking for something simple like

    Code (CSharp):
    1.     if Unity.IOSDevice.HasTrueDepth()
    2.     {
    3.     //do something
    4.     }
    5.     else
    6.     {
    7.         //dont
    8.     }
    it seems strange that there doesn't seem to be...
     
unityunity