-1

I'm currently having an issue integrating the latest react webGL and unity GL using the unity context. Here's my current details and the errors.

enter image description here

enter image description here

    const { unityProvider, loadingProgression, isLoaded } = useUnityContext({
     loaderUrl: "unitybuild/BattleComponent.loader.js",
     dataUrl: "unitybuild/BattleComponent.data",
     frameworkUrl: "unitybuild/BattleComponent.framework.js",
     codeUrl: "unitybuild/BattleComponent.wasm",
    });
    {!isLoaded && <p>Loading... ({Math.round(loadingProgression * 100)}%) </p> }     <UnityunityProvider={unityProvider} />

That's also the code based that I've implemented. And whenever I run it the loadingProgession stuck in 90%.

3
  • That error message means that somewhere in BattleComponent.framework.js there is code like blah.Facebook = …, but blah is undefined. Without more information I can't be more specific; if possible please provide a minimal reproducible example. Commented Jul 31 at 19:59
  • Hello, One of my current issue when loading the game in the react unity webGL it's stock in 90% only it doesn;t load upto 100%. And I think based on the error in the devtools that facebook error it's not related to the 90%. Commented Aug 4 at 1:30
  • If you have two unrelated problems then you should ask two separate questions. I think you'd need to provide more details and ideally a reproducible example in order to get help with the "stuck at 90%" problem. Commented Aug 4 at 17:59

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.