Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

ARSubsystemManager.systemStateChanged never reaches ARSystemState.SessionTracking on iOS

Discussion in 'AR' started by mj-3dqr, Sep 11, 2018.

  1. mj-3dqr

    mj-3dqr

    Joined:
    Mar 30, 2017
    Posts:
    13
    After the ARSession is deactivated and reactivated (ARSession.enabled), the status ARSystemState.SessionTracking is never reached on iOS.

    reproduction:
    1. Open the SampleScene from ARFoundation
    2. Add a event on ARSubsystemManager.systemStateChanged which logs the state on Call
    3. Add two buttons to the scene
      • one button to disable ARSession
      • another button to enable the ARSession
    4. build the app for ios (with 2018.1.9f1)
    At first run the state changes from Ready to SessionInitializing to SessionTracking. After switch it only changes from Ready to SessionInitializing. But it is still functional and scans the environment and change and add planes. Only the PointCloud isnt visible.

    On Android all is working fine.
     
  2. mj-3dqr

    mj-3dqr

    Joined:
    Mar 30, 2017
    Posts:
    13
    We need a complete state change in our app to completely control arfoundation.