Search Unity

Stop and restart arkit tracking session

Discussion in 'AR' started by areavisuale, Apr 18, 2018.

  1. areavisuale

    areavisuale

    Joined:
    Jul 23, 2015
    Posts:
    60
    Hi, I'm struggling searching to find a way to stop and restart arkit tracking (for example if I have tracked my desk, and I wanted to track the floor). I uploaded a gif of an app that does what I want...

    I want to remain in the camera view and restart the tracking, but when I try to do that, the app remembers the old planes it found.

    Could you help me?
     

    Attached Files:

  2. areavisuale

    areavisuale

    Joined:
    Jul 23, 2015
    Posts:
    60
    When I call:
    UnityARAnchorManager unityARAnchorManager = new UnityARAnchorManager();
    unityARAnchorManager.Destroy ();

    I noticed that all the instantiated gameObjects are removed, but I cannot scan again the previously detected surfaces, until I reload the entire scene.

    I don't understand where to look to find the code to clear all the memorized surfaces.
     
  3. jimmya

    jimmya

    Joined:
    Nov 15, 2016
    Posts:
    793
    Look at this post: https://forum.unity.com/threads/ark...unity-arkit-plugin.474385/page-7#post-3124354
     
    areavisuale likes this.
  4. areavisuale

    areavisuale

    Joined:
    Jul 23, 2015
    Posts:
    60
    thanks, I noticed that using the arkit remote that script doesn't work correctly, but into the device the script works.