Unity打包WebGL报Unable to parse Build/*.framework.js.gz This can happen if build compression was.......

Unity版本:2020.3(LTS)

0.错误完整信息:

Unable to parse Build/*.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.

Unity打包WebGL报Unable to parse Build/*.framework.js.gz This can happen if build compression was......._第1张图片

1.解决方法,在Unity的WebGL Player Settings中的Publishing settings选项卡中,把Decompression Fallback 选项勾上即可。

Unity打包WebGL报Unable to parse Build/*.framework.js.gz This can happen if build compression was......._第2张图片

2.Decompression Fallback官方解释 

链接:Unity - Manual: WebGL Player settings

你可能感兴趣的:(Unity#Bug记录,unity,c#,游戏引擎)