Hi!
In our project, we show an additional UI in AR (Android) to give users a hint, to move their phone (so the anchor can be places automaticly, after the ground was found). Then, when the anchor was set, we activate some objects from our scene.
It worked well, but after we made a needle update (from 3.44.1 to 3.47.10) it stopped working. (if the downgrade the needle version back to 3.44 it is working again).
Hi Llllkatjallll! I’m your AI-powered assistant. I can help with questions about Needle Engine, three.js, and basic Unity or Blender support. Please share your OS, Needle Engine version, and any Unity or Blender versions you’ve used for more tailored help! Looking forward to your question!
2 replies left - GPT 4O thread_yjcUBFFhGzjRIiq12CkyllNa Reply to this message to continue the conversation
So perhaps something else in your application changed/stopped working? Or you tested on a different device - as you can see in the linked docs, trackedAnchors is not available on Safari. What you probably want to do instead is to call args.xr.getHitTest() and check if you have any hits
Please note that auto placement is also available as an option in the WebXR component.
Thank you for the answer, Marcel!
We are actuallu using auto placement already. The information, if the ground/anchor was found is needed not for the placement itself, but for switching additional UI on/off.
Here is an example of what I mean:
Build with newer needle version: Map-Hotspots
Build with downgraded version: Map-Hotspots
If you try the AR Mode (Select Hotspot->Click AR), you will see the additional UI I described before.