MozillaReality / unity-webxr-export

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

VR Not working - No 'Activate VR interface button #437

Closed topofsteel closed 1 month ago

topofsteel commented 3 years ago

I began by republishing the example scene. There is no Allow VR prompt and I don't get the enable VR interface button in the lower right corner. Did I miss a step? Thoughts? Thanks.

http://www.virtualziggurat.com/Projects/WebVR/index.html

shujip commented 2 years ago

I have same issue. Did you solve it?

LuZongkuan commented 2 years ago

So am I.Although it works fine in the Unity 2019.4.6f1 editor

topofsteel commented 2 years ago

Your host doesn't support some of the features needed. I couldn't dig up the specifics now but I'll look for the details later today. I believe Cloudflare supports the requirements but I never worked through it. I reply back with the specific issue when I find it.

topofsteel commented 2 years ago

Feature-Policy: xr-spatial-tracking

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy/xr-spatial-tracking

De-Panther commented 2 years ago

This repo last update was 2 years ago. There are alternatives...

topofsteel commented 2 years ago

I don't think there are any issues with the original code or repo. It just uses features not supported by many hosts.

De-Panther commented 2 years ago

The requirement of the backend for WebXR to work, by default, is to run from a secured context (HTTPS).

The header you linked to is not a must. So unless they forcefully restrict this for some reason, that shouldn't be an issue.

LuZongkuan commented 2 years ago

I don't think there are any issues with the original code or repo. It just uses features not supported by many hosts.

Maybe you're right.I switched to Firefox Reality browser on my desktop,it works.