Unity发布Webgl报错(Unable to parse Build/Test3_Build_WebGL.framework.js.gz!)

问题描述:

unity发布webgl,在本地上打开正常,用云服务器打开就报错,显示Unable to parse Build/Test3_Build_WebGL.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.
在这里插入图片描述


解决方案:

在这里插入图片描述

PlayerSetting->Player->Publishing Setting

把DecomPression Fallback勾选上即可

猜你喜欢

转载自blog.csdn.net/zjjjjjjj_/article/details/127056503