#Error with WebXR AR on Android

1 messages · Page 1 of 1 (latest)

lime zealot
#

Reproduced in Unity 2023.2.7f1 with Needle 3.32.10-exp

Local server running Collaborative Sandbox sample -> Open on Chrome android on Xperia 1 V, click AR then try to tap the reticule to place the AR model I get this error when exiting and checking the log

Uncaught TypeError: Cannot read properties of undefined (reading 'set')\n\t/node_modules/.vite/deps/chunk-VL444THT.js?v=02aec963:11045:38\nTypeError: Cannot read properties of undefined (reading 'set')
    at Input.onDown (https://192.168.50.90:3000/node_modules/.vite/deps/chunk-VL444THT.js?v=02aec963:11045:38)
    at Input.onTouchStart (https://192.168.50.90:3000/node_modules/.vite/deps/chunk-VL444THT.js?v=02aec963:10470:14)
    at https://192.168.50.90:3000/node_modules/.vite/deps/chunk-VL444THT.js?v=02aec963:10456:12
ivory pecanBOT
amber blade
#

Will try to reproduce, thanks

lime zealot
#

Uploading a report for it now just to help

amber blade
#

I dont think its necessary

#

Ok maybe it's necessary because I cant repro this here. Will try your project

lime zealot
#

Trying from a fresh clone of the Samples Project

amber blade
#

It reproduces in your project

lime zealot
#

Happening in a completely separate project here too which I kept samples in

amber blade
#

Ah its using samples?

lime zealot
#

Glad to hear it, it's blocking me from testing all my AR fixes

#

I reproduced it from the samples here in a project I have just for the samples testing

amber blade
#

Samples and the exp branch are not yet compatible - I hope to be able to make a release later today or tomorrow

lime zealot
#

It happens in my own scene too

amber blade
#

alright

lime zealot
#

I'll push you my scene also as a bug report now if you want

amber blade
#

Is it the same error?

lime zealot
#

Yes

#

Uploaded - if you have any idea what the cause is if I can fix it on my end just let me know, I'm excited to try out the new WebXR refactors you added in the recent versions for my model viewer

#

Also are the AR drag/scale/rotate controls in by default now? I can replace my old hacky code for that

amber blade
#

The AR drag controls are there yes, either via WebXR.usePlacementAdjustments or on the WebARSessionRoot (it has priority for this setting)

lime zealot
#

Thanks, will wait for a fix before I can test this as that error seems to block spawning the AR object on android AR

amber blade
#

This should now work with alpha 11 (just double checked in your project)