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

Problem when trying to keep ARAnchor through Scenetransition and then repositioning

Discussion in 'AR' started by neubacherkuni, Feb 8, 2020.

  1. neubacherkuni

    neubacherkuni

    Joined:
    Oct 31, 2019
    Posts:
    5
    Hey,
    for my final uni project I am try to build a collaborative VR-AR Game and I am using ARCore for the ARpart, specifically the plane-tracking.
    My project consists off a few levels and they get loaded as new scenes, which works fine, I am also keeping all the AR dependency-object around.
    I have given the user a button that enables them to reposition the AR object on the plane by touching the plane. And it works as expected and fine in the first scene.
    But as soon as I load into the next scene, when I try to reposition my AR object it instead moves the AR-Plane-visualizers around, while the object stays in place. And when I stop touching, the planes snap back to the original position.

    And I don't really know how to fix it :( Has anybody else encoutered this problem? Or has any suggestion on how to fix it? Maybe I need to reload some code in the new scene or something? D: