Questions tagged [unity-webgl]

Unity WebGL is a build option for exporting Unity projects as JavaScript programs which use HTML5, WebAssembly, WebGL and other web standards to run Unity content in a web browser.

What is Unity WebGL?

The WebGL build option allows Unity to publish content as JavaScript programs which use HTML5/JavaScript, WebAssembly, WebGL rendering API and other web standards to run Unity content in a web browser.

As of Unity 5.4, Unity WebGL is the official replacement for the Unity Web Player.

580 questions
0
votes
0 answers

Unity WebGL build error in NON-development mode only

I'm using Unity 2017.3.03f free personal edition, I've an application in unity that works normally in desktop and android platforms. However, When it's built for WebGL release (unchecked "development build" option") it gives this error in browser…
0
votes
2 answers

Host Unity WebGl on Angular app on Firebase hosting

I have an angular app where I read Unity WebGl in a iframe. I use the url /assets/webgl/index.html to launch the webgl. All works in dev, but when I deploy on Firebase, I got this error : UnityLoader.js:1 Invoking error handler due to Uncaught…
0
votes
0 answers

Unity WebGL disable cookies or how to update game objects from url

I've implemented script that creates elements from url xml file using UnityWebRequest.Get(uri). But this file can be changed in runtime, so I am trying to update the model, by uploading same xml file, but seems it stored in cookies and model can't…
shss
  • 3
  • 2
0
votes
1 answer

Can't run simple application hosting on Facebook

I created app in developers.facebook.com . In products I add web hosting. Chosen type of app is Unity (WebGL). Then I create .7z package build in Unity and upload on developers.facebook.com. I use Facebook platform, WebGL and App Id. After that I…
StrangeCube
  • 159
  • 1
  • 1
  • 5
0
votes
1 answer

Unity WebGL remain localData after app update

We released our game on several platforms, including WebGL. This game saves some local stuff (app language, local users...) into the PlayerPrefs, using the browser's IndexedDB API. Though we noticed after uploading a new version of the app on our…
Carsten
  • 1
  • 2
0
votes
1 answer

Dynamically created Tilemap tiles render in editor and Android build but not in WebGL build

I build a test project to get a minimal reproducible script, and this does it: using UnityEngine; using UnityEngine.Tilemaps; public class TileTest : MonoBehaviour { public Tilemap tilemap; public Sprite floorSprite; void Start () { …
kungphu
  • 4,592
  • 3
  • 28
  • 37
0
votes
1 answer

Load Audio from persistentDataPath in runtime (Unity3d WebGL)

I have online/offline project. I need to download wav/ogg/mp3 file from Application.persistentDataPath on WebGL platform. I tried www/webrequest. For example - WWW("file://" + Application.persistentDataPath + filePath); But always get error: Failed…
0
votes
0 answers

missing function: _ZN6il2cpp2os12MarshalAlloc8AllocateEj UnityLoader.js:1:8039

I am developing a system to pay via PayPal. I experience this problem when I try to "checkout" and please help me if you can think of any solution for this problem. Everything perfectly works on Windows build but fails when it try it on…
Dimitar
  • 1
  • 1
0
votes
0 answers

Unity webgl screen gets cut off inside of browser

well i've done the space shooter tutorial and run the compiled webgl app in a html file, but I noticed that the top screen area is cut off I can scroll down and see the rest of the game app, the bottom shows as expected and if I press the fullscreen…
DarkVader
  • 41
  • 1
  • 6
0
votes
0 answers

How to scale A Unity-WebGL game to browser window

I've built a Unity game for web, setting the default resolution to 1152 x 648 for testing. The output html file had the following code:
zack_falcon
  • 4,186
  • 20
  • 62
  • 108
0
votes
1 answer

No sound on Facebook Gameroom for unity WebGL

We have a game build for WebGL, using WebAssembly. Everything is working well, on all newer browsers (even Edge version 41). The problem is when the game is played in Facebook Gameroom, all sounds stopped working. We do not create a gameroom build,…
Ran
  • 1,089
  • 1
  • 12
  • 30
0
votes
1 answer

Unity Performance Reporting For WebGL (Production Build)

Does Performance Reporting work for production (non-development) WebGL Builds? I see in the Services Panel the tag 'WebGL' under 'Supported Platforms'. I have Performance Reporting enabled, but only my development build crashes wind up on the Unity…
0
votes
0 answers

How to stretch resolution in WebGL platform?

I am working on home design project for WebGL platform. But it doesn't fit to the window while I am changing the browser window size. How can I fit it to browser window?
gmspacex
  • 642
  • 5
  • 12
0
votes
0 answers

Data path in Unity-WebGL using Laravel Framework

is there any posibilitie how to load files (like css or js) from generated WEBGL The Path in build html is Release/UnityLoader.js so normally it should be localhost:8000/*folders where are the unity files are stored/Release/UnityLoader. But with…
0
votes
0 answers

How I can use unity render 3D model and native android?

I try to develop an app on AR, so the command way for developing app on AR is: Unity and Vuforia. Native android app and Vuforia. The first way: I lose android App UI. The second way: I lose unity render special in a complex model. I fond another…
mohammad tofi
  • 207
  • 1
  • 3
  • 14