Search Unity

Tracking Reason in ARFoundation with ARKit

Discussion in 'AR' started by karsnen, Jun 21, 2019.

  1. karsnen

    karsnen

    Joined:
    Feb 9, 2014
    Posts:
    65
    Unity Version : 2019.1.6f1
    ARFoundation Version : preview.2 - 2.2.0
    ARKit Plugin : Preview 5 - 2.1.0
    Device iOS : 12.+
    XCode Version : 10.2.1

    I have been working with ARKit plugin from the BitBucket repo. Just moved to ARFoundation and it's ARKit plugin. I am working on world tracking & I am able to understand tracking state any point in time, like below

    Code (CSharp):
    1.  
    2. UnityEngine.XR.ARKit.ARKitSessionSubsystem XRSessionSubsystem = (ARKitSessionSubsystem)m_ARSession.subsystem;
    3.  
    4. //XRSessionSubsystem.trackingState
    5.  

    However, I would like to know the tracking reason when trackingState is limited

    Reference :
    https://developer.apple.com/documentation/arkit/artrackingstatereason
    From BitBucket Repo :
    BitBucket Link
    UnityEngine.XR.iOS.ARTrackingStateReason



    I would highly if you guys could point me to that direction.
     
    alexusblack likes this.
  2. karsnen

    karsnen

    Joined:
    Feb 9, 2014
    Posts:
    65
    Can someone in Unity Team point me in the right direction?
     
  3. DanMillerU3D

    DanMillerU3D

    Unity Technologies

    Joined:
    May 12, 2017
    Posts:
    12
    ARKit Tracking reasons were recently added and should be available in the next release of the ARKit package.
     
    alexusblack likes this.
  4. karsnen

    karsnen

    Joined:
    Feb 9, 2014
    Posts:
    65
    Thank you.
     
unityunity