Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Stop tracking and remove detected planes

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

  1. Ulises_P

    Ulises_P

    Joined:
    Feb 4, 2018
    Posts:
    8
    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:
    6
  3. hawken

    hawken

    Joined:
    Aug 22, 2013
    Posts:
    488
    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.