- Home /
 
 
               Question by 
               Ellie97 · Sep 27, 2018 at 03:28 PM · 
                augmented realityimage target  
              
 
              Disable ARKit image tracking
There are lots of tips on disabling plane tracking, but I can't seem to find anything that shows how to disable image tracking in ARKit? Essentially I have images I want to 'scan' rather than spawn objects on.
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Ellie97 · Sep 28, 2018 at 11:56 AM
Using this link, I figured it out! I added the following to GenerateImageAnchor.cs
 UnityARSessionNativeInterface m_session;
 
     void Start () 
     {
         m_session = UnityARSessionNativeInterface.GetARSessionNativeInterface();
     }
 
 void AddImageAnchor(ARImageAnchor arImageAnchor)
     {
             //at the bottom of this function
             StartCoroutine(RemoveAnchorCoroutine(arImageAnchor));
         
     }
 
    IEnumerator RemoveAnchorCoroutine(ARImageAnchor anchor)
     {
         yield return new WaitForSeconds(3.0f);
        //doesn't have to be in a coroutine, but for my uses it is
         m_session.RemoveUserAnchor(anchor.identifier);
     }
 
              Your answer
 
             Follow this Question
Related Questions
ARKit image recognition - how to make it more 'sensitive'? 0 Answers
AR Foundation image tracking - ARTrackedImagesChangedEventArgs behaviour 0 Answers
animated a model with a button in Unity with vuforia 1 Answer
Display 3d model after removing focus from image target 0 Answers
keep instance of that 3d model after removing image target 0 Answers