[SOLVED] Anyway to select the gameobject of an AR plane

  • Issue category: AR Plane Manager
  • Device type & OS version: Android
  • Host machine & OS version: Windows
  • Issue Environment : On Device
  • ARDK version: 2.0.0
  • Unity version: 2020.3.31f1

Description of the issue:
I’m trying to change the materials of a specific AR plane, but using a HitTest I can’t seem to get a reference to the gameobject. I can’t find one on the IARHitTestResult.
I’ve also tried a normal raycast to hit the plane but it doesn’t seem to be able to hit the plane.

Thanks in advance for an answer!

Kind regards
Koen

Seems that the mesh Collider that I addded on the PlanePrefab Plane object wasn’t working. Switching it out for a box Collider did the trick. So now I just do a regular unity raycast that finds the plane, I created a new layer for the plane so the raycast doesn’t hit any other objects in the scene.

1 Like

This topic was automatically closed 2 hours after the last reply. New replies are no longer allowed.