Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Detected object position

Discussion in 'AR' started by MariaToyos, Sep 18, 2023.

  1. MariaToyos


    Aug 2, 2023
    Hi, I'm making an AR app. I`m trying with ARFoundation, visionLib and Vuforia. I would like to instantiate an object in the position of the actual object once it is detected, and keep it fixed even if the object is no longer detected. Can it be done?

    That is, I want to find the variable that stores the real-world position of the detected object, and instantiate another object at that position. In this way, I could move with the camera around an object without it moving.
  2. andyb-unity


    Unity Technologies

    Feb 10, 2022
    The standard way to do this is to create an anchor at the object position at the moment that the object is first detected, then use that anchor's position as your reference.