用谷歌浏览器打开本地unity webgl报错
·
问题描述
unity打包webgl,双击index.html,用谷歌浏览器打开,报错:
Failed to download file Build/Test4_Build_WebGL.framework.js.unityweb. Loading web pages via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host Unity content, or use the Unity Build and Run option.

解决方案:
可以把文件放到本地服务器上,通过本地服务器打开webgl就不会报

关于如何配置本地服务器,可以自行百度
更多推荐
所有评论(0)