586 questions
1
vote
1
answer
51
views
Updating JSON from Google Sheets in Unity (WebGL project) in runtime
I am trying to get and parse JSON file from Google sheets (by url) to my Text object in scene by clicking a button and start method GetAdress().
But my text is going to Update only once (in 1st time ...
0
votes
0
answers
73
views
After WebGL build a websocket client doesn't work and throws a JS exception
When I use WebGL build to build my project, websocket client doesn't work at all.
I use WebSocketSharp library and Unity 6. I encounter a JS exception:
null function or function signature mismatch.
...
0
votes
0
answers
150
views
Unity WebGl Abort({}) at error at Jsstacktrace (blob:Https://....)
I built a webGl game from Unity running on Telegram and got the following error, this error often occurs on android devices. Please help me, I've wasted too much time on it.
My game has an assetbundle ...
1
vote
0
answers
112
views
Unity WebGL build not getting location services
I built a WebGL application from Unity and added Javascript and C # code to get location services from the browser. However, when I start the application, it asks for permission, but the application ...
0
votes
1
answer
177
views
WebGL build is giving errors after I added my own location input
I am building a location based game in unity as a WebGL build. The file was building before I added my script changes but the location input was not working on site (Hosted on itch.io). I then added a ...
0
votes
0
answers
80
views
Optimization Physics2D.Collider2D.DestroyShapes
Good day! I have a problem with optimization in the project, I use the library in the public domain. https://github.com/Ideefixze/DTerrain with its help, dynamic destruction can be done. It works well,...
-3
votes
1
answer
219
views
Unity 6 builds an empty folder for WebGL
So basically after updating to Unity 6000.0.29f1, I can't make a build for WebGL platform anymore (it worked fine in 2021 version), since it builds an empty folder. Although there are some errors ...
0
votes
0
answers
111
views
Unity Asset Rendering Distance
So I have some low poly assets I am struggling to get rendered in the distance. They appear Dark Blue. As you can see, the ones closer, render correctly. They only render in the correct color the ...
0
votes
1
answer
191
views
Open a new tab unfocused (WebGL - Unity)
I'm using Unity and build is for WebGL. I am able to open a URL as a new tab which is great, however as the new tab opens 'focused', it stops my WebGL application running until its tab is 're-focused'....
0
votes
0
answers
582
views
Unable to parse Build/Test.framework.js.br
I am trying to host my Unity WebGL Build on Firebase Hosting and I am using the Brotli compression for better performance and smaller build size. I saw in a post that Firebase supports brotli by ...
0
votes
1
answer
148
views
UNITY 2D and WebGL: 3D-TextMeshPro NOT SHOWING on build and run
The Problem:
Play Mode - the spawning of asteroids with words (3d TMP) is good and it shows the tmp.
Build and Run - On the WebGL browser from the build and run, the asteroids spawns with only its ...
0
votes
1
answer
329
views
How to load static files inside react component while creating react library using webpack
I am trying to create custom react library and wanted to load some files [js,data,wasm] from assets folder inside my react component but I am not able to load those files I tried multiple loaders.
if ...
0
votes
1
answer
77
views
Disappearing buttons in the Unity WebGL build
I have 2 buttons to set the control scheme in my game and a script that fades the active scheme button. It works fine in the inspector, but after building on WebGL buttons disappear when I try to ...
0
votes
1
answer
64
views
Scale Background(SpriteRenderer) C#,Unity
When I change the resolution, the camera gets closer to the center and many objects are simply not visible.How can I fix this?screen with wrong sizes. correct size my gamesame problem on other scenes.
...
0
votes
0
answers
145
views
Feasibility of Creating a WebGL Build with Unity Transport 2.1+ and Netcode for GameObjects (NGO)
I have developed a multiplayer card game using Netcode for GameObjects (NGO) and planned to deploy the clients via a WebGL build hosted on a web server. However, I am encountering significant ...
0
votes
1
answer
221
views
Uploading a video(file) through file explorer in Unity WebGl
I'm developing a game on Unity WebGl. I have a part that user has to upload a video through file explorer, then I have to send it to server. I don't have to play it in unity. I just need to get the ...
0
votes
0
answers
105
views
Unity C++ WebGL build Error _ZN2cv3MatC1Ev
I'm trying this link to use OpenCV in unity. It works in UnityEditor but doesn't work in WebGL builds. Gives me errors when I try to build..
Errors :
Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\...
1
vote
0
answers
231
views
Outline shader not loading in WebGl Build | Unity URP
I finished my web game. When I publish it and upload to itch.io or other game platforms, the outlines doesn't show up.
The game in the Unity editor:
enter image description here
The WebGl Build:
enter ...
0
votes
0
answers
16
views
Unity WebGL check mac or windows [duplicate]
In Unity, I know that you can check the operating system using Application.platform
I'm using the WEBGL build however, so Application.platform is set to WebGLPlayer
How do I figure out whether I'm on ...
-1
votes
1
answer
211
views
How to change a Javascript MIME type from text/html to application/js in Create React App (react-unity-webgl)?
I am trying to load a Unity Webgl build in my react component using react-unity-webgl. However, the MIME type of the loader.js file is text/html when I open the networks panel. Therefore, the loader....
0
votes
0
answers
275
views
Unity 6 WebGL what is throwing error in framework js
So I have paid for server hosting for my personal project and I wanted to add interactable app (made with unity WebGL) and as I never did WebGL outside of Itch.io and I am noob in terms of technical ...
1
vote
3
answers
383
views
How do I build my unity project if I need to use UnityEditor.Animations?
Error
Assets\Scripts\Animatronic AI\Freddy.cs(2,19): error CS0234: The type or namespace name 'Animations' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)
I ...
1
vote
0
answers
66
views
how to Print Image in unity webgl with javascript
Hello friends I have a project that I can't view with Unity on the webgl platform, now I want to print a photo that is in my project with a printer when I enter the project in Chrome for example and I ...
0
votes
1
answer
437
views
React Unity WebGL Not Working | Cannot read properties of null (reading 'useState')
I'm currently setting up a basic React website that includes a WebGL application. I successfully followed the 'Getting Started' guide for React [1], and then I tried to integrate a WebGL application ...
1
vote
0
answers
40
views
Bundling C# and Unity GameObjects
I wanted help with something related to C# and Unity. I am developing a simulation in Unity that involves the representation of biological systems, such as the human circulatory system. In this ...
2
votes
3
answers
719
views
How to load 3D objects from an external local folder in unity?
I am doing a project in Unity3D and I need to upload 3D objects in fbx format dynamically. For this, I have a folder called "uploads" where I upload 3D files from an API. This uploads folder ...
1
vote
1
answer
125
views
Is there any way to difference when a slider value is changing manually or automatically?
I'm programming a video player in Unity, and I'm using a Slider as the bar to set the seek of the video.
For this I have created the SeekVideo function that uses the value of the slider to assign it ...
-1
votes
1
answer
449
views
Unity SocketIo using Best http2 plugin want to use in webgl
When ever I try to emit data using this best http2 plugin it emit data as a jsonstring but in backend side they want as a jsonobject and how many times i try to change it as a jsonOject using json.net ...
0
votes
0
answers
215
views
Problem with AR development in Unity WebGL
I'm using Zappar Plugin with Universal AR to develop an application with Unity that runs as a WebGL. I'm currently using Zappar Image Tracker to track a QR code, when pointed, a mesh appears. The ...
0
votes
0
answers
79
views
Unity Microsoft Login Not working in WebGL, but does in Windows
using System.Collections.Generic;
using UnityEngine;
using Microsoft.Identity.Client;
using UnityEngine.Events;
using UnityEngine.SceneManagement;
using System;
using ...
0
votes
1
answer
2k
views
Is there a way to prevent a Unity WebGL build to get permanently cached?
I currently have my Unity WebGL build deployed into one of my company servers. The hosting provider is Aruba.
The issue I'm encountering is that when I release a new build onto the same address (I ...
0
votes
0
answers
31
views
Unity webGl unable to see the main scene
I build an application using Unity 2019.4
So if I try to build this application as windows application it is ok, if I try to build this application as HTML5 application, I can see this when I tun it:
...
0
votes
0
answers
183
views
Game scene stuck in loading page. Main game scene is not loading
Console log image
I am working on a project which is actually in android . Now i have converted it into webgl. Webgl build smoothly works on unity editor but when I am checking it into browser it's ...
0
votes
0
answers
320
views
Unity - shadows not showing in WebGL / Game view only?
I have an issue wherein on in game view in WebGL only, shadows do not show. In the scene view (also on WebGL), they do show. So far I have checked:
Quality settings
Lighting settings
Confirmed the ...
0
votes
1
answer
136
views
Thirdweb UnitySDK: storage.Upload gets stuck in WEBGL build
I have a line which uploads new metadata to ipfs, but it just freezes in WEBGL build (does not log an error either)
IPFSUploadResult newURI = await ThirdwebManager.Instance.SDK.storage.UploadText(...
0
votes
1
answer
190
views
WebXR/VR Canvas how to interact?
I am working on a WebGL VR game. It's working fine, however I can not interact with canvas, I can only see it but can not click on it. I am using VR interaction toolkit, WebXR export packages. The ...
-1
votes
1
answer
450
views
Errors when building unity game
When I press build in unity (using WebGL) it gives me 3 errors: (I have no other errors/warnings)
1.Internal build system error. read the full binlog without getting a BuildFinishedMessage, while the ...
0
votes
1
answer
748
views
Unity Build Error with TextMeshPro: "Cannot initialize non-default texture with negative or zero width"
I'm encountering a build error in Unity when trying to build my project with TextMeshPro. The error does not occur when I press the play button, only when I try to build and run the project using the ...
0
votes
1
answer
538
views
Unity WebGL System.IO.File.ReadAllBytes not working with blob URL
I have a problem with this code:
byte[] dataToPost = System.IO.File.ReadAllBytes(filePath);
When I use the filePath of an image in Application.persistentDataPath everything works fine.
But I am not ...
0
votes
2
answers
587
views
How to send an HTTP POST request to Google Cloud Speech To Text using plain Javascript
I am creating an Unity WebGL build and I have to use Google Cloud Speech To Text API in my app.
Unity does not support microphones in WebGL builds, but there is a workaround using jslib files that ...
0
votes
1
answer
53
views
Why is the orbital camera twitching from the phone?
I'm creating a game for webgl, the goal is to create an orbital camera for a phone, I managed to do it for computers, but I can't do it for a phone. I've been trying to do this for a few days now, and ...
0
votes
1
answer
567
views
Connection error when sending web requests on unity WebGL build only
I'm trying to send a post request to my login API (located on same system) that I made on ASP.NET in c# with my unity WebGL build as client, but for some reason it always pops out a connection error ...
1
vote
1
answer
609
views
Can't set resolution of WebcamTexture on WebGL build Unity
I've been working on this app for windows and recently was tasked to switch it over to WebGL.
Everything has been going smoothly except for the Webcam Resolution which I can't seem to get working... I ...
0
votes
1
answer
312
views
Gamelift Unity server build not running issue. InitSDK() was not called in time
enter image description here
I'm encountering an issue while using Amazon GameLift to deploy a Unity-based game server. Specifically, I'm receiving the "SERVER_PROCESS_SDK_INITIALIZATION_TIMEOUT&...
0
votes
2
answers
301
views
Pulling files from Azurite in Unity fails
I am trying to use an OBJ file from Azure storage in my unity scene, which I will run as an website application. I have azurite running and a container created with files in it. I can see the file ...
0
votes
0
answers
215
views
Convert JPG image to a texture/sprite in WebGL
I’m building an app in WebGL, where one of the required feature is to be able to take an image from your computer and put that image onto a card.
The file upload process is working perfectly and I can ...
0
votes
1
answer
222
views
Unity coroutine not working as expected with WebRequest
This code is logging the token immediately after the web request when it should wait for the variable to be set. Here's the code:
public void ConnectToLiveKit(string Username, string RoomName){
...
1
vote
0
answers
899
views
Unity WebGL RuntimeError: memory access out of bounds
I have a Unity WebGL simple Match 3(2-D) game exported and running, and for me personally it works on like 5 different devices, but a friend of mine, who unfortunately lives too far away for me to ...
2
votes
1
answer
1k
views
How to make vibration in WebGL
I need vibrate phone in webgl builds. It would be cool if you could adjust the duration and intensity. However, I don't even know how to make even a normal vibration.
I tried use this: https://gamedev....
0
votes
1
answer
676
views
Creating a digital twin of a moving robot in unity web server
First of all, I'm quite new to both unity and communication protocols, but I'm creating this post just to see if some more experienced people have any tips on how I can make my project possible.
So I'...