All Questions
Tagged with unity-webgl reactjs
21 questions
0
votes
1
answer
167
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
0
answers
79
views
React UI elements linked to 3D spatial positions inside WebGL/Unity
I'm working on an application involving a Unity viewer using WebGL embedded in my React App, and I'm thinking of the best approach to embed some 3D elements fixed to some spatial locations on the 3D ...
-1
votes
1
answer
178
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
1
answer
398
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 ...
0
votes
1
answer
96
views
ReactJs Complex Sidebar with nested components and state management
I am using reactJs with Mui to implement a portal for a unity project that creates metaverses, I have a floating sidebar that will contain all the elements and objects for the user to use and ...
0
votes
0
answers
60
views
State update not reflected in async WaitFor function
I'm trying to write the following functionality (implemented in the code snippet below). On a button click, the async function openUnityProjectScene is called. This function should set a loading view ...
0
votes
1
answer
1k
views
Why is Unity WebGL not working on my React Website?
I have been trying to import a Unity game inside of my website using React Unity WebGL. I have looked at many tutorials and videos and I seem to have the right code however, the games do not show up ...
-1
votes
1
answer
1k
views
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
...
1
vote
0
answers
871
views
Error on importing Unity WebGl build in ReactJS project
I'm trying to load Unity game on web but this is the error I get on the console.
Uncaught SyntaxError: Unexpected token '<' (at 8490a1a1-bf79-475c-a429-4588078be1fb:1:1)
react_devtools_backend.js:...
0
votes
0
answers
459
views
To publish Unity default AR Project with React Unity WebGL has a different serialization error
Development Environment
Macbook M1 Pro (With Apple Silicon Chip)
Unity 2021.3.10f1 (Be compatible with Apple Silicon Chip)
Test with Chrome Browser
Current Progress
I just create a new project with ...
1
vote
1
answer
2k
views
How to properly unload Unity WebGL when component is removed by Router in React
I am wondering if someone implemented Unity web Gl to the website developed in React. That’s what I do now, and started to regret my choice.
Everything works fine, but for about two weeks I can’t ...
5
votes
2
answers
4k
views
React unity WebGL not working on React JS project
Hey there trying to make my Unity WebGL export work on my React JS project but for some reason is not working I'm using the following React Unity WebGL version ([email protected] # For Unity 2018 ...
2
votes
0
answers
381
views
Unity inside React JS: Magic header problem
I'm trying to insert a build unity of type WebGL in the react JS application. However, I am having a problem with the file called WASM (WebAssembly) provided by Unity. My purpose is to show the game ...
1
vote
0
answers
549
views
CORS issue in Chrome Browser using Unity WEBGL build and chrome extension
Introduction :
I am using Unity WebGL build to play contents on the Bowser, But In browser unity webgl build is taking time to load. So in order to not load the unity webgl library again and again, I ...
0
votes
1
answer
136
views
Passing e.target.value is throwing me error
This is the error message that is showing when I run handleUserInputChange.
index.js:1375 MissingMethodException: On_Off_Light.ChangeBrightness Due to: Attempted to access a missing member.
My ...