Skip to content

Rendering outside of index.js #202

Discussion options

You must be logged in to vote

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",
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jeffreylanters
Comment options

Answer selected by jeffreylanters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants