Search Unity

Question How to stop AR from moving objects?

Discussion in 'AR' started by cf_alex_bull, Dec 7, 2022.

  1. cf_alex_bull

    cf_alex_bull

    Joined:
    Nov 15, 2022
    Posts:
    3
    In AR Foundation I'm wanting an object to stay in the same place relative to the camera/not be affected by AR tracking. I'd like for other objects to be able to remain affected by AR tracking too.

    Is there any way to do this?

    An example of roughly what I am talking about can be seen here:
     
  2. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,062
    There isn't any AR-specific trick here-- I would recommend just making your object a child of the Main Camera? That way when the camera moves, the object will always move with it.