Search Unity

Stop tracking and remove detected planes

Discussion in 'AR' started by Ulises_P, Aug 4, 2018.

  1. Ulises_P

    Ulises_P

    Joined:
    Feb 4, 2018
    Posts:
    15
    Hi all, I'm looking for a way to stop the AR tracking once I have placed my objects in the scene and also to remove from the screen the planes already detected.

    I tried using UnityARSessionNativeInterface and ARKitWorldTrackingSessionConfiguration by disabling the plane detection and submitting the config changes to the session, that makes the application randomly crash and even stop working. Is there a different approach to do this.

    Thanks.
     
  2. jipsen

    jipsen

    Joined:
    May 22, 2018
    Posts:
    37
  3. enhawk

    enhawk

    Joined:
    Aug 22, 2013
    Posts:
    833
    keep a reference to your generate plane object, when you're ready to stop, just disable that object, then do a find gameobject on all planes, using tags, and delete them.