Unity Mobile WebGL 兼容性

wei*_*_yu 5 unity-game-engine

当我在网站上运行我的项目的 WebGL 版本时,它显示: please note that unity webgl is not currently supported on mobiles

当我点击确定时,我的游戏仍然正常运行,为什么它说它不支持手机?我可以禁用警报吗?

apk*_*apk 5

它可以在您的手机和浏览器上运行,但距离普遍支持还很远,这就是 Unity 不鼓励这样做的原因

至于禁用警告,它在一开始就实现了UnityLoader.js,你可以轻松删除它。

var UnityLoader=UnityLoader||{compatibilityCheck:function(e,t,r){UnityLoader.SystemInfo.hasWebGL?UnityLoader.SystemInfo.mobile?e.popup("Please note that Unity WebGL is not currently supported on mobiles. Press OK if you wish to continue anyway.",[{text:"OK",callback:t}]) (...)