You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using react-unity-webgl for loading unity game. Its working fine when i am in App.js file. But when i use routing its crash and didn't show anything. If i dont use react-unity-webgl then other things are working fine. I searched alot but didn't find any solution
I have the same issue, where UnityWebGL is stuck on the loading scene. I used Unity 2022.3.45f1, then loaded using HashRouting pages in React with Vite (jsx files), anddespite having hashrouting the problem persist.
Here is the code:
import '../App.css';
import React from "react";
import Header from '../components/Header';
import Footer from '../components/footer';
import { Unity, useUnityContext } from "react-unity-webgl";
Please avoid duplicates
Language and Compiler
Vanilla JavaScript
What environment are you using?
Local Development Server
When does your problem occur?
When the Unity Component mounts
What does your problem relate to?
The problem seems Module related
React-Unity-WebGL Version
9.4.3
React Version
17.0.2
Unity Version
2022.1.16f
What happened?
I am using react-unity-webgl for loading unity game. Its working fine when i am in App.js file. But when i use routing its crash and didn't show anything. If i dont use react-unity-webgl then other things are working fine. I searched alot but didn't find any solution
Reproducible test case
Would you be interested in contributing a fix?
The text was updated successfully, but these errors were encountered: