Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unity Mobile WebGL compatibility

Tags:

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?

like image 730
weijia_yu Avatar asked May 23 '17 22:05

weijia_yu


People also ask

Is Unity WebGL supported on mobile?

WebGL 1.0 is supported in the stable releases of most major browsers on both desktop and mobile platforms.

Does WebGL work on mobile?

yes, Build and Run works.

Can mobile browser run Unity?

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.

Does Unity WebGL work on IPAD?

Note that Unity WebGL content is not currently supported on mobile devices.


1 Answers

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}]) (...)

like image 101
apk Avatar answered Sep 22 '22 10:09

apk