[Unity问题]发布WebGL报错

解决方法:工程配置勾选【解压缩回退】

文档介绍

● 问题描述

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.


● 问题截图


● 解决方法

Player Settings - Publishing Settings - Decompression Fallback 改为勾选,重新发布即可

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

点赞(0)

立即查阅

返回
顶部