Unity发布WebGL报错 : Unable to parse Buildweb.framework.js.gz. This can happen if build compression was

Unity发布WebGL报错 : Unable to parse Buildweb.framework.js.gz. This can happen if build compression was,第1张

环境

Unity 2021.2.7f1c1

服务器: Nginx

异常信息

点击 构建和运行 运行正常, 发布到Nginx就报错了

Unable to parse Build/web.framework.js.gz! This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header “Content-Encoding: gzip” present. Check browser Console and Devtools Network tab to debug.

异常截图

解决方案

玩家设置 — 发布设置 最底下 — 解压缩回退 改为 勾选, 重新发布即可

其它

官网解决方案
贴吧解决方案

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/740067.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-28
下一篇 2022-04-28

发表评论

登录后才能评论

评论列表(0条)

保存