- Home /
Does Web GL build supports offline deployment?
Hello,
I'm trying to build my app on Web GL but I need it offline. Does Web GL build supports offline deployment like Web Player does?
Thanks in advance.
Answer by HarshadK · Apr 05, 2016 at 07:03 AM
On the Building and Running a WebGL Project page, it is specified how you can run WebGL build offline. It states that,
You can view your WebGL player directly in most browsers by simply opening the index.html file. For security reasons, Chrome places restrictions on scripts opened from local file: URLs, so this technique will not work. If you use Unity’s Build & Run command (menu: File > Build & Run) then the file will be temporarily hosted in a local web server and opened from a localhost URL (this avoids the security restrictions). You can also run Chrome with the --disable-web-security command line option to enable it to load content from file: urls.
Thanks! I already have run the app on desktop. But unfortunately when I tried it on android mobile devices (which is my target device for my app), the app won't work anymore. Unity displays a message saying WebGL doesn't support mobile devices. :(
Answer by Schubkraft · Apr 05, 2016 at 07:38 AM
As already answered the "offline" version is the same as the "online" version just run from disk.
We don't support mobile devices with WebGL hence the error message.
Your answer
Follow this Question
Related Questions
Is There Any Ads Networks Are Suppoted For Unity Webgl Games? 0 Answers
Unity WebGL in iOS Safari 1 Answer
WebGL responsive template 0 Answers
Browser doesn't support Web GL 2 Answers
How to fix the Chrome Web Player Problem 2 Answers