Unity打包到Web平台问题记录

第一次使用Unity打包到Web,已经发布到IIS后遇到报错信息:

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

解决办法:在Project Settings设置Publishing Settings,勾选Decompression Fallback

猜你喜欢

转载自blog.csdn.net/Stephanie_1/article/details/124423917