Unity's WebGL not working with Firebase Hosting

有些话、适合烂在心里 提交于 2020-01-14 10:35:29

问题


I'm trying to deploy a WebGL built with Unity to Firebase Hosting, but I'm getting an error:

Invoking error handler due to Uncaught SyntaxError: Unexpected token <.

I can run it fine on localhost, though. I'm using the production build, not the development one, so I have the following file structure:

  • index.html
  • Release
    • UnityLoader.js
    • webgl.datagz
    • webgl.jsgz
    • webgl.memgz
  • TemplateData (image, css and js files)

Any ideas? Anyone faced this issue before?

来源:https://stackoverflow.com/questions/40369921/unitys-webgl-not-working-with-firebase-hosting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!