本文主要是介绍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.
1.解决方法,在Unity的WebGL Player Settings中的Publishing settings选项卡中,把Decompression Fallback 选项勾上即可。
2.Decompression Fallback官方解释
链接:Unity - Manual: WebGL Player settings
这篇关于Unity打包WebGL报Unable to parse Build/*.framework.js.gz This can happen if build compression was.......的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!