Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    54
    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...