Questions tagged [unity-webgl]
The unity-webgl tag has no summary.
47 questions
0
votes
1
answer
62
views
How to build a Unity WebXR scene that uses raycasters?
I am fairly new to Unity. I want to create a VR project that I build to WebXR and publish to the web. I am using the sample scene from this project and it helps me get up and running. I am able to ...
0
votes
0
answers
29
views
Is it impossible to do an XMLHttpRequest from Facebook Instant Games?
I'm trying to store/fetch data from my own backend in my Unity WebGL build. I want to host this build on Facebook Instant games.
Content-Security-Policy: The page’s settings blocked the loading of a ...
0
votes
3
answers
733
views
OVR Lip Sync in Unity WebGL project
I am using the Oculus VR (OVR) Lip Sync Plugin for an avatar in a Unity project which I want to deploy to a browser using WebGL.
The issue is that WebGL doesn't support Unity's ...
1
vote
1
answer
305
views
Is this code using Awaitable correct?
I am upgrading my code from coroutines to using async-await and Awaitables on Unity 6. I have the following code of a spawner:
...
1
vote
1
answer
251
views
How to copy text from my web game that I hosted on Itch.io?
I am having trouble copying specific text to the clipboard in a game I developed in Unity that I am hosting directly in the browser on Itch.io.
The code I implemented works perfectly in the editor and ...
1
vote
0
answers
217
views
Minimal Content-Security-Policy (CSP) for WebGL Builds
I have a Webgl build created in Unity 2020.3.22f1.
The Content Policy looks like this (set to report-only for debugging):
Code (htaccess):
...
1
vote
0
answers
338
views
Have black screen after build game on web gl
Good day.
Everything works fine for me on the unity stage, but as soon as I start the game, after the unity screensaver I get a black screen with an interface, what to do, please help.
My console
<...
0
votes
1
answer
119
views
Skybox doesn't get displayed on mobile Chrome in Unity WebGl
In my webgl build skybox is completely purple on mobile Chrome browser but works fine on PC and mobile firefox. Is there any fix for this?
Edit:
This is my skybox material and I didn't do anything ...
3
votes
1
answer
115
views
Compiling Unity to WebGL gives a Node ESM module error
I'm trying to build my multiplayer game to WebGL in Unity (using Mirror). However, when I press "build", it gives me the following three errors:
...
1
vote
1
answer
116
views
Character walks too fast when browser's hardware acceleration is turned off
I have posted a project on itch.io (here). My character walks with the speed I intended when Chrome's hardware acceleration is turned on but walks much faster when it is turned off. First, my friend ...
0
votes
1
answer
401
views
WebGL FPS is sometimes higher than max. FPS setting - why?
In lots of WebGL online games (all games I tested were made with Unity), my FPS is sometimes higher than the max, FPS setting of my PC (75), but why?
0
votes
0
answers
183
views
Unity WebGL Game's Canvas UI scale changes with windows scale
So this is the setting that is affecting my game. My game is a webgl build from unity running in chrome, hosted on itch.io.
At 100% windows scaling setting, the UI elements have expected size,...
1
vote
1
answer
634
views
When loading only one item from the asset bundle in Unity, does the whole asset bundle need to get downloaded?
I am deciding on how to package my asset bundles that will be loaded from the web server at some point in the game. Currently I am thinking of packing them by types: for example, I would have one ...
1
vote
1
answer
863
views
How do I share a downloadable WebGL build in Unity?
When I make a WebGL build for my project, I get a folder that lets me click a .html to play my game in a browser. Is there a way I can share a folder like this for playtesters?
I tried sending a .zip ...
1
vote
1
answer
6k
views
How to copy text from an InputField to the clipboard in WebGL?
I would like to know if there is a solution to copy/paste the text from/to an InputField in a WebGL Unity app.
For security reasons, Unity WebGL doesn't allow text copy and paste in/from browser.