Search Unity

ARKit - Session Failure Event handling

Discussion in 'AR/VR (XR) Discussion' started by karsnen, Feb 2, 2019.

  1. karsnen

    karsnen

    Joined:
    Feb 9, 2014
    Posts:
    65
    Scenario
    Unity: 2018.2.20f1
    Apple ARKit
    Configuration -> World Tracking Configuration


    Request
    Now when between starting a session & ending a session, there is a probability of ARSessionFailedEvent to be raised. I would like to know what would be the best way to handle it?

    Code (CSharp):
    1.  UnityARSessionNativeInterface.ARSessionFailedEvent += {};

    My Implementation

    I am open a Native UI alert stating that there is a system error & push the user to the MainMenu.

    1. Any resources on best to handle it? Apple doc maybe?
    Thank you,
    Karsnen