Rendering outside of index.js #202
-
Hi there, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I solved it, just put / infront of the urls const unityContext = new UnityContext({ |
Beta Was this translation helpful? Give feedback.
I solved it, just put / infront of the urls
const unityContext = new UnityContext({
loaderUrl: "/WebGlBuild/build.loader.js",
dataUrl: "/WebGlBuild/build.data.unityweb",
frameworkUrl: "/WebGlBuild/build.framework.js.unityweb",
codeUrl: "/WebGlBuild/build.wasm.unityweb",
});