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.
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%.
blah.Facebook = …
, butblah
isundefined
. Without more information I can't be more specific; if possible please provide a minimal reproducible example.