Search Unity

Question Faulty trackableId of ARPlanes in Unity MARS

Discussion in 'Unity MARS' started by DoAugMenRo, Apr 28, 2021.

  1. DoAugMenRo

    DoAugMenRo

    Joined:
    Sep 17, 2019
    Posts:
    18
    Hi,
    I am using the ARFoundation ARRaycastManager and ARPlaneManager to get the id of a hit ARPlane. This works fine in the .apk but not in Mars. In MARS. I get the plane id 0000000000000000-0000000000000000, which is not an available plane id. The correspongin Plane is called ARPlane FFFFFFFFFFFFFFFF-0000000000000005 in the Hierarchy.
    Code (CSharp):
    1. s_Hits[0].trackableId
    However getting the hit position still works fine in MARS and returns the correct position.
    Code (CSharp):
    1. s_Hits[0].pose.position
    I tested this in Unity 2020.3.3f1 + MARS 1.3 and in Unity 2019.4.3f1 + MARS 1.2

    Is this something that MARS is currently not able to do, or is some additional setup required?
    Thank You.
     
  2. CiaranWills

    CiaranWills

    Unity Technologies

    Joined:
    Apr 24, 2020
    Posts:
    199
    By "works in the .apk but not in MARS" do you mean the problem happens when you run your app in the editor with the simulation environment?
     
  3. Dextex94

    Dextex94

    Joined:
    Oct 23, 2020
    Posts:
    8
    Hello
    im working with DoAugMenRo on the projekt.

    yes, it works fine if we build the apk and test it on a smartphone

    but in the simulation Environment the plane what we want selected is null. What DoAugMenRo had forget to say is
    every plane give us in the simulation environment the same trackableID i think there is something wrong.
     
  4. CiaranWills

    CiaranWills

    Unity Technologies

    Joined:
    Apr 24, 2020
    Posts:
    199
    Yup, that's a bug; we'll get it fixed.

    You'll probably discover that the simulation isn't 100% faithful to how things work on device, but let us know if you hit any other issues.