MozillaReality / unity-webxr-export

INACTIVE - Assets for creating WebXR-enabled Unity3D projects.
https://mixedreality.mozilla.org/unity-webxr-export/Build/
Apache License 2.0
626 stars 127 forks source link

No finger touch support in Cardboard? #389

Closed ibrews closed 4 months ago

ibrews commented 4 years ago

Trying to build this out to have some use for Cardboard, and coded some functionality based on touch input (as I've done with many Unity-based cardboard experiences). Works fine in 2D mode but stops registering once I go to VR. Strange since it works in https://github.com/immersive-web/webvr-polyfill

Test project: http://alextestprojects.altervista.org/1/index.html

De-Panther commented 4 years ago

Try to use HTTPS instead of HTTP.

I didn't try to use touch on Cardboard mode, but at least it'll solve the Polyfill issue.

De-Panther commented 4 years ago

Looking more into this, it seems that we might need to check for XRSession "select", "selectstart" and "selectend" for touch input. And it might also be relevant for AR sessions.

imbible commented 4 years ago

Any progress on this? @De-Panther Does your fork support the Cardboard button events?

De-Panther commented 4 years ago

The fork should, but there's no working example