itch.io发布webgl全流程
1.启动纹理压缩,压缩到200mb以下:
在build setting里调整asset import override一键压缩全资产
Texture Compression最好设置成no override,不然容易在浏览器上报出no signal 错误
2.itch.io发布项目时遇到如下问题
An error occurred running the Unity content on this page. See your
browser JavaScript console for more info. The error was:
RuntimeError: null function or function signature mismatch
at https://html-classic.itch.zone/html/12774543/webgl5/Build/
webgl5.wasm.br:wasm-function[29790]:0x90691b
at https://html-classic.itch.zone/html/12774543/webgl5/Build/
webal5.wasm.br:wasm-function[525011:0xf40528
通过将 Player Settings > Publishing Settings > Enable Exceptions 更改为 Full Without Stacktrace 来解决此问题。启用完整的异常处理