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

Demo link does not work in Edge? #356

Closed foxvalleysoccer closed 2 months ago

foxvalleysoccer commented 5 years ago

This demo link does not work in Edge but does work in Firefox. https://mozilla.github.io/unity-webvr-export/Build/

I tried building my own demo from the repository too and it also doesn't work in Edge.

SCRIPT5022: SCRIPT5022: SyntaxError telemetry.js (153,7) http://dev.wisc-online.com/Prototypes/joshLinks/Heart/index.html

Is there a special way to publish for Edge or does it only work in specific versions?

This is my version Microsoft Edge 42.17134.1.0 Microsoft EdgeHTML 17.17134

caseyyee commented 5 years ago

There was nothing particularly different to enable Edge support since it implements the standard WebVR API. Something could have broken in Edge or the exporter in the 2018.x Unity upgrade. Unfortunately can no longer test as I don't have access to a WMR device.

caseyyee commented 5 years ago

Unsure how if this is the same/related issue: https://github.com/mozilla/unity-webvr-export/issues/353

Either change the title if its a new issue to be more specific, or close in favor of 353.

riebling commented 5 years ago

Can confirm, Edge in HoloLens throws syntax error in javascript exception, same deploy works on Android, Firefox, Chrome web browsers. Tried debugging but HoloLens is a little tricky to access javascript error consoles :) Same thing happens on the Arctic demo scene https://cvan.io/unity-webvr-arctic/Build/

This site says...

An error occurred running the Unity content on this page. See
your browser JavaScript console for more info. The error was:
SyntaxError
                                                           [ OK ] 

Then if you click the OK button, it remains stuck at the "Loading..." screen

A clue: in Firefox, before enabling WebVR, similar error message. Like maybe the JS exception is related to something calling a method that only exists if WebVR is enabled. but this is pure armchair amateur guesswork Same failure in Edge desktop and Edge on HoloLens browsers. What's especially painful about this is that at least my latest version of Edge, if you turn on web debugging (F12) it splits the screen, then reloads, and pressing F12 again crashes Edge on the 2nd or 3rd try. Hard to see the error if you can't get a console! :)

joshmarinacci commented 4 years ago

Does the new Edge support WebXR?

De-Panther commented 4 years ago

@joshmarinacci https://caniuse.com/#feat=webxr Should support, but I guess it's the same as Chrome Desktop and you'll need to run it using special configuration.