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

Unity WebGL build error: The name Network does not exist in the current context

I'm trying to build a multiplayer WebGL game with Unity3D, with the new UNET system. It runs perfectly in the editor, and builds perfectly for Mac and Windows, but I try to build it for WebGL it gives me this error in multiple scripts: The name…
0
votes
1 answer

How to download image using javascript in Unity WebGL

I'm trying to download image from a server to my Unity WebGL app. I used WWW and it works but it has problems where it freezes the whole WebGL app in the browser while its downloading. This simple code works, but it stops the app while its download…
Programmer2
  • 69
  • 11
0
votes
1 answer

How to communicate with Unity WebGL app

I want to implement WebGL model viewer using Unity. This viewer is integrated into existing website. On this website there is a list of models and when user clicks on a model a window pops out displaying this model (like sketchfab). I integrate…
DikobrAz
  • 3,557
  • 4
  • 35
  • 53
0
votes
0 answers

WebGL frame rate slows down after triggering javascript event

I am using Unity WebGL to host my game on a flask server and trying to throw a warning to the user whenever he tries to navigate away from the tab or mistakenly click browser's back button. Each time after the event is triggered (whenever I try to…
SaberTooth
  • 157
  • 1
  • 4
  • 15
0
votes
1 answer

360 panorama in Browser, HTCVive, Oculus Rift

can you please help me to understand how can I make 360 panorama for Web. I am using SteamVR and Oculus sdk because I want universal app for (Web, HTCVive, Oculus Rift). It works in Unity but after compiling for WebGL it does not work on web. Please…
Svitlana
  • 2,938
  • 1
  • 29
  • 38
0
votes
1 answer

Possible to Create Wii U Tablet Interaction?

Its possible to create wii U tablet effects/controllers with AirConsole API? what we call 2 screens gameplay? similar to zombie U or other games like create a mario maker? or create a area to touch/draw and add effects like create a inventory…
0
votes
2 answers

Fresh heap memory WebGL Unity on Chrome

I had some problem when run Webgl on Chrome: Memory still on ram when I close my Webgl game: Before run my game: 1.00G ram While run my game: 1.9G ram After close my game: 1.8G ram Run game again: 2.5G ram => Array buffer allocation failed Memory…
0
votes
1 answer

Unity WebGL Download normal map texture from server using www

I'm developing a WebGL program with Unity 5.3.1 WWW www = new WWW(System.Uri.EscapeUriString(nrmUrl)); while (!www.isDone) { yield return null; } materailBall.GetComponent().material.SetTexture("_BumpMap",…
siusiulala
  • 1,040
  • 1
  • 12
  • 24
0
votes
1 answer

Unity WebGL - accessing StreamingAssets folder from build uploaded in LMS /Server

I couldn't access the files StreamingAssets folder from WebGL build which is uploaded in LMS server, I kept those files in StreamingAssets folder to update it for future use. Followed the instruction given in unity manual, working fine in editor,…
ben
  • 13
  • 1
  • 7
0
votes
1 answer

Unity WebGL build with SCORM 1.2 is not working in LMS

I have integrated SCORM 1.2 with my game which produces WebGL output, if we play the WebGL out directly in browser its working fine and not working in LMS. Found that the game play script included in the game causing the issue, when I disable it and…
ben
  • 13
  • 1
  • 7
0
votes
1 answer

WebGL textmesh character not showing on browser

WebGL textmesh font only show in the game view but not in the browser. Game View WebGL View the # character with red color is fine, but █ with blue color is not working, is it because of the character i'm using is not currently supported ?. since…
Tengku Fathullah
  • 1,279
  • 1
  • 18
  • 43
0
votes
2 answers

Unity3D - Let user load image for webgl

My code strangely isn't loading the user images from local hard drive to the gameObject called "planeLogo". The file with the function ImageUploaderCaptureClick() is called ImageUploader1.jslib and resides in the plugins/WebGl folder. Here's the…
Muteking
  • 1,465
  • 5
  • 18
  • 31
0
votes
2 answers

Unity WebGL multiplayer networking

I'm trying to bring old Unity game code in c# i wrote last year back to life. Its a multiplayer game using uLink, uLobby, uZone for the networking part of it. I read just TODAY the shock that browsers will no longer support WebPlayer and i have to…
programmer3
  • 97
  • 1
  • 12
0
votes
1 answer

Update C# code through website or database

I've searched through the web and seen a lot of talk about a WWW method of retrieving content from a web server or a database and using values but I would like a method where I don't have to continuously update my code in monodevelop and then build…
user5491906
0
votes
1 answer

Get Error in WebGL: ReferenceError: $ is not defined

I have Unity project created in Unity 5.2.3. I open this project in Unity 5.3.3p3 and compile for WebGl and get error: Invoking error handler due to ReferenceError: $ is not defined.
Knaus Irina
  • 789
  • 5
  • 15
  • 35