Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

ARTrackingState ARTrackingStateReason with ARFoundation?

Discussion in 'Handheld AR' started by Jelmersb, Nov 1, 2018.

  1. Jelmersb

    Jelmersb

    Joined:
    Jul 12, 2016
    Posts:
    66
    I'm looking for the equivalent of ARKIt's ARTrackingState and ARTrackingStateReason in ARFoundation
    https://developer.apple.com/documentation/arkit/artrackingstate?language=objc

    So far I found this event, but it never gets called, not even wen covering the camera.
    ARSubsystemManager.sessionSubsystem.TrackingStateChanged

    I also subscribed to ARSubsystemManager.systemStateChanged
    but it always return "tracking", even when I cover the camera and tracking is interrupted/bad..

    How do I check the quality of tracking and the reason for bad tracking with ARFoundation?
     
  2. Jelmersb

    Jelmersb

    Joined:
    Jul 12, 2016
    Posts:
    66
    OK, turns out it works fine on Android, but on iOS simply always says sessionTracking.

    Also, I would still like to know how to access tracking state reason from ARKit.
     
    something-david likes this.