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

Uncaught ReferenceError: UnityLoader is not defined #444

Closed Syltas closed 4 months ago

Syltas commented 3 years ago

Whenever I try to build the Unity project on my Windows machine to have a look at it in the browser, I get an infinite loading Screen and the error: "Uncaught ReferenceError: UnityLoader is not defined". In general, no reference in index.html like "%UNITY_CUSTOM_NAME%" works.

I'm pretty new to Unity so I might just have overlooked some pretty basic stuff. Does anyone know where the problem might come from?

MrMatthias commented 3 years ago

Unity changed the WebGL Template in Unity 2020.1 (forum thread), you would need to copy the default template from the 2020.1 playbackengines folder and apply the webxr exporter changes there. But i think 2020 is not supported by the exporter.

knightcube commented 3 years ago

I got this same issue. How do I resolve this?

knightcube commented 3 years ago

So I used Unity 2019 to generate the build and now it is working fine. Looks like 2020 is not supported yet.

MrMatthias commented 3 years ago

So I used Unity 2019 to generate the build and now it is working fine. Looks like 2020 is not supported yet.

if you want to use 2020 check out this repository: https://github.com/De-Panther/unity-webxr-export

knightcube commented 3 years ago

Thanks for sharing the link. Will check it out.

netgfx commented 1 year ago

2021.3.16f1 still has this issue. I replaced the files from the above link but still the same error with the unityloader