I’m looking to display an AR cube on android and IOS devices with surface tracking before display, I guess it’s relatively simple to set up but using Needle for a few hours I have no idea how to organize my project on unity to get this done. If someone would be so kind as to help me
Anything that you place under WebARSessionRoot will get exported, you can place it right next to the Gtlf Object and see the whole scene in AR like that.
Mind that iOS does support only USDZ file viewing and not the full WebXR standard. To understand what is possible, checkout the Everywhere Actions and see their samples and enter the AR on an iPhone.
Hi, I have another problem displaying my object on android devices, on IOS everything is displayed correctly (left screenshot) but on android with google browser there is only a little cube displayed that I never created (right screenshot). I’ve added the following components to my root gameObject : Gltf Object, USDZ Exporter, Web XR, Web AR Session Root, Web XR Plane Tracking
There’s currently a bug in Chrome where the scene is sometimes rotated shortly after placing it (Chrome devs are looking into it as far as I’m aware), can you check that the content isn’t somewhere to the side?
That green cube is from the default avatar, you can remove the DefaultAvatar reference in the WebXR component
Hi @albendo we’re adding a fix on our side in engine to workaround the underlying bug - the next update should work as expected again on android as well