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

Question Using ARWorldMap on iPad Pro to place myself at a saved location.

Discussion in 'AR' started by IARA-VL, Oct 6, 2022.

  1. IARA-VL

    IARA-VL

    Joined:
    Oct 26, 2018
    Posts:
    4
    Hello,
    I think there's something I don't understand about ARWorldMap or ARSessionOrigin (or using both at the same time. So I'll describe what I'm doing.

    1/ main scene with 3D objects.
    2/ load an additive scene by using whatever method to place the 3D at the right spot. Here I use MakeContentAppearAt
    3/ saving the ARSessionOrigin position/rotation/scale + the ARWorldMap into file.

    *leave the application*

    4/ reload the app into the main scene with same 3D.
    5/ read the saved file, apply the position/rotation/scale to the ARSessionOrigin transform (directly, not using MakeContentAppearAt)
    6/ load ARWorldMap

    Expectation : the 3D should be placed at the same location than when I saved it at step 3.
    Reality : not working at all.

    I also trying using MakeContentAppearAt with a transform at origin and the saved location/rotation and it didn't worked either.

    Am I using it wrong and it doesn't work like that at all or am I just missing something in the code but the concept should be working ?

    Hope I can find some help here because I'm a little clueless on the subject right now.