Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved ARKit object stay on lose tracking

Discussion in 'AR' started by saifshk17, Jan 21, 2021.

  1. saifshk17

    saifshk17

    Joined:
    Dec 4, 2016
    Posts:
    488
    I am using XR's ARKit to detect image tracking. I am adding simple cube on Detection. But when the image is lost, the cube also disappears. How do I make sure that the cube stays in the same position?
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,816
    You can do this by adding an AR anchor at the detected point.
     
    saifshk17 likes this.
  3. saifshk17

    saifshk17

    Joined:
    Dec 4, 2016
    Posts:
    488
    Do I need to add an anchor on my object or the image? Because the object is jittering/floating and I want to keep it stable.
     
  4. todds_unity

    todds_unity

    Joined:
    Aug 1, 2018
    Posts:
    324
    Add the ARAnchor component to the game object instantiated at the detected point.