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

Optimising Delays on WebGL

I am trying to develop an application with Maya and Unity (for multiplatform use) then exporting it to WebGL, but the load times for the application is quite long, although it is not a very large file. Is there a noticeable difference in performance…
gfc85
  • 21
  • 5
0
votes
1 answer

Unity 3D - Rotate image over a static cylindrical image

one customization part of my existing e-commerce website is created in adobe flex, where we are displaying effect of 360 degree rotation of mug (one can consider as cylinder) with all the customization (Add photo, text, layouts etc.) user has made…
0
votes
0 answers

Unity3D vibrating and choppy scroll (with live demo + WebGL compared)

Something must wrong here either with me or my monitor or GPU. Others also suffer from this phenomena see the links. Now I would like to emphasize this problem is exist, being optimist I think there is some solution. Maybe it is only noticeable in…
g.pickardou
  • 32,346
  • 36
  • 123
  • 268
-1
votes
1 answer

My Unity Project gives errors when building

I have some problems when i want to build my unity 2D project with webGL. I am a programming starter, and for my school i made a final project, i choose to make a game. Now i have this errors and i have to present this game in a public presentation.…
-1
votes
1 answer

Auto Resizable Text Background in Unity or how create messager in Unity

I want to develop a messenger application. I have successfully implemented sending and receiving messages using ChatGPT, but the background size is always the same width . I want to know how to make the background of the message scale dynamically to…
KraNf
  • 1
-1
votes
1 answer

Photon and MetaMask Websocket are conflicting in unity

Hello when I try to build my game with unity webGL I got this error : Someone knows how i can resolve it ? Plugin 'WebSocket.jslib' is used from several locations: Assets/MetaMask/Plugins/Libraries/WebSocket/WebSocket.jslib would be copied to…
-1
votes
2 answers

How to fix 'Unable to parse Build" error in WebGL build?

I want to host my Unity WebGL in was s3 bucket. When I upload my files to an s3 bucket and open index.html to view the project, I get this error.
Kavishka Rajapakshe
  • 537
  • 1
  • 8
  • 23
-1
votes
1 answer

Unity WebGL Build and Run Fails - 404 .loader.js missing?

I (on MacBook Pro M1 on Ventura 13.2.1) am using Unity's (2021.3.14f) to build a WebGL project using "Build And Run", but when the game launches, it gets stuck on the loading screen with Unity Logo and an empty bar. Using Safari and Chrome give the…
-1
votes
1 answer

react-unity-webgl in Next.js project not working

I am trying to get this code working in a Next.js build, however the game does not load on the page and I get no errors in the console So I am just at a loss on why the game won't load. I am using unity: 2021.3.16f1, (to export game) "next":…
Brooklee
  • 135
  • 1
  • 8
-1
votes
1 answer

Change colour of a button through C# script in Unity

Everywhere online says it is possible to change the 'normalColor' variable of a button in Unity. It is changeable in the inspector, but for whatever reason, when I run the following code: public class ButtonSelector : MonoBehaviour { public…
Tom Jedi
  • 7
  • 1
-1
votes
1 answer

Error 403 "forbidden" being thrown on unity web application

Recently (within past week) our unity webgl (Unity v2019.4.16f1) application has been unable to read files using the google drive API. When I check the web console I see the following error: UnityGoogleDrive: HTTP/1.1 403 Forbidden Google Drive…
-1
votes
1 answer

Unity WebGL Simple JSON

I am trying to import text in my Unity script with WebGL but it seems like in WebGL, it is not able to find the JSON file itself. I have saved the file in StreamingAssets. How do I fix this? using System.Collections; using…
Brantly
  • 3
  • 1
-1
votes
1 answer

Why Unity WebGL build catched error "ReferenceError: MyMethodName is not defined"?

I want to call javascript function in unity. I created a folder "Plugins" like explained in https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html and create a javascript file with extension .jslib and put inside next…
olegmihh
  • 21
  • 6
-1
votes
1 answer

Unity WebGL Build Won't Even Appear in Nuxt/Vue App - Could not find a declaration file for module 'unity-webgl'

I am making a WebGL app that is supposed to work in Nuxt/Vue. I built the app in Unity Editor for WebGL and it works perfectly in Firefox when I open the index.html file. I tried to import the data into the view page video-game.vue. The code of this…
ChristianOConnor
  • 820
  • 7
  • 29
-1
votes
2 answers

OnWheel and getBoundingClientRect error using unity webgl

I have the following errors when using webgl with react, I've changed nothing between the two attempts, and apparently the error changes too. The error occurs when swapping page Does anyone have an idea as to what this error would be caused…
1 2 3
38
39