一、unity打出的web包,游览器打不开
360游览器
It seems your browser does not support running Unity WebGL content from file:// uels.Please upload it to an http sercer, or try a different browser.
谷歌浏览器
Internet Explorer11
Please note that your browser is not currently supported for this Unity WenGL content.Press OK if you wish to continue anyway. OK
An error occurred running the Unity content on this page.See your browser JavaScript console for more info.The error was:拒绝访问
Microsoft Edge
It seems your browser does not support running Unity WebGL content from file:// uels.Please upload it to an http sercer, or try a different browser.
火狐浏览器 (Firefox)
It seems your browser does not support running Unity WebGL content from file:// uels.Please upload it to an http sercer, or try a different browser.
二、原因
您的浏览器似乎不支持从您使用 uels 运行 Unity Webgl file://内容。请将其上传到 http Sercer,或尝试其他浏览器
一是可能没有开启webgl支持,二是没有允许本地载入资源
三、解决
1、如果用Firefox打开
下载火狐浏览器
浏览器的地址栏输入“about:config”然后回车(Enter)
搜索“webgl”
将webgl.force-enabled设置为true
将webgl.disabled设置为false
搜索“security.fileuri.strict_origin_policy”设置为false
关闭firefox,重新启动firefox
选择firefox打开
说明
webgl.force-enabled和webgl.disabled是强制开启webgl支持
security.fileuri.strict_origin_policy的设置是允许从本地载入资源
2、360游览器打开
点击菜单选项按钮
开启WebGL
允许从本地载入资源
右键属性
目标加入
--allow-file-access-from-files
应用并且确认
待续