When I ran WebGL version of my project on website, it displays: please note that unity webgl is not currently supported on mobiles
When I hit ok, my game still runs like normal, so why it states it does not support mobiles? Can I disable the alert?
WebGL 1.0 is supported in the stable releases of most major browsers on both desktop and mobile platforms.
yes, Build and Run works.
First, from my own experiences, there's a misconception that Unity WebGL doesn't work well with Mobile Web browser. That's 100% false and you can run Unity WebGL quite well even on relatively old mobile devices' browser.
Note that Unity WebGL content is not currently supported on mobile devices.
It runs on your phone and your browser, but it's still far from general support, and it's why Unity is discouraging this.
As for disabling the warning, it's implemented at the beginning of UnityLoader.js
and you can easily remove it.
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}]) (...)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With