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
1 answer

Qt WebEngineView: Problem with loading a WebGL project (exported from Unity)

I'm trying to download a WebGL project (exported from Unity 2018.3.14f1) in Qt WebEngineView (Qt 5.12.0) For an example, WebGL project was created in Unity 2018 - an empty scene without objects (camera only) - Screenshot: Unity project and exported…
0
votes
3 answers

Unity WebGL: why using downloaded Mp3 or OGG file, audio can't be played?

I need to download audio (OGG, Mp3 or wav) from URL and play it. In Editor is working fine, and also in stand alone build. But not in WebGL build.. i got any error or (depends on format) this: Streaming of 'mpeg' on this platform is not supported …
stighy
  • 7,260
  • 25
  • 97
  • 157
0
votes
1 answer

Unity WebGL override compatibilityCheck callback

I am currently working on a Unity WebGL project, which only supports WebGL 2.0. The project does not work with WebGL 1.0. Now I want to realize that if a browser does not support WebGL 2.0, an image will be displayed instead of the WebGL…
0
votes
1 answer

Copy framebuffer data from one WebGLRenderingContext to another?

Please refer to the background section below if the following does not make much sense, I omitted most of the context as to make the problem as clear as possible. I have two WebGLRenderingContexts with the following traits: WebGLRenderingContext:…
Arnaud H
  • 881
  • 2
  • 10
  • 16
0
votes
1 answer

Unity WebGL crashes when JavaScript dialog box is shown

Displaying a Javascript dialog box in browser from Unity C# causes photon networking to disconnect and crash. My Unity WebGL game running in a browser needs the user to PAST in some information. The browser doesnt allow Unity to access the past…
Programmer2
  • 69
  • 11
0
votes
0 answers

Unity WebGL: how to scale/adapt app based on container?

I'm developing a WebGL app. My question is: how can i modify standard Unity template to make my App scale resolution based on his container ? For instance, if I place my app into a :
<... my code to run…
stighy
  • 7,260
  • 25
  • 97
  • 157
0
votes
0 answers

Why Am I getting javascript error : "This request has been blocked; the content must be served over HTTPS."?

I've a web site where i'm hosting a mysql database, a website and a webapi app (say: https://my-website.com/webapi). Then I've a WebGl app hosted on a CDN (says: https://www.mycdn.com/myapp) After WebGl app is downloaded into user browser, user…
stighy
  • 7,260
  • 25
  • 97
  • 157
0
votes
1 answer

Having trouble connecting Unity3d WebGL project build to database, works fine in editor

I used this code to connect my Unity project to my MySql database: public void SetupSQLConnection() { Debug.Log("Connection Function Started"); if (connection == null) { Debug.Log("If connection == null"); try { …
0
votes
1 answer

Why is my texture quality so poor when running a webGL build from unity?

I've imported a texture whose quality drops significantly in web builds. I have the compression set to "none", and max size set as high as it will go, with "Override for Web GL" left unchecked The scaling is 1:1, and in Project Settings >…
Armisa
  • 31
  • 1
  • 6
0
votes
2 answers

I tried to build my game in unity-webGL and I got an error

I tried to build my game in webGL and i got this error "Could not find file "C:\Users-----\OneDrive\Documents\Endless\Runner\Temp\StagingArea\Data\Native\build.bc" The whole error is: FileNotFoundException: Could not find file …
user10725691
0
votes
2 answers

Loading Unity WebGL Export in UWP Windows app

When loading Unity WebGL exported project in UWP Webview, the actual game does not load. However, loading it from a localhost server works fine! I have tried loading project from Assets folder, local folder on the computer and from the server. First…
0
votes
1 answer

XML file not included in WebGL Build

I'm trying to build my game for the WebGL platform. My game is getting data from an XML file located in the project's root folder. It works fine in the editor and also if building for Windows. But when I build for WebGL the game doesn't work…
Ditto
  • 296
  • 1
  • 13
0
votes
0 answers

Why WebGL build disables Mouse Wheel Scroll on webpage?

I have unity2D Game running in a canvas on Website(WebGL Build).When scrolling the page, scrolling stops when the mouse gets over the webGL content. I want to enable Mouse Scroll on WebGL content.After a lot of research on Google, I found a solution…
0
votes
0 answers

UnityWebHandler only works with certain websites?

So, I am trying to use the REST API to access my firebase database, but unitywebrequest is giving me some issues. I have noticed that the code I have returns the html code of the page only for certain websites (I have tried it with www.google.com)…
0
votes
1 answer

Unity - 360 video on Web using panoramic Skybox

My Unity project is really simple : I'm rendering a 360° video on a texture. It plays via a Video Player applied to a panoramic Skybox. As described here : https://docs.unity3d.com/Manual/VideoPanoramic.html It works fine on all platforms, except…
tinkz
  • 100
  • 2
  • 17