Skip to content

Console error when trying to use .gz or .unityweb files from Unity 2020 WebGL build #144

@sd63534790

Description

@sd63534790

I'm getting console error below when trying to use .gz or .unityweb files:
This is how I'm trying to use them in UnityContext constructor.
const WEBGL_BUILD = 'webGL_build_unity2020';

...
const sourcePath = ${process.env.baseBuildPath ? '/' + process.env.baseBuildPath : '..'}
const unityContext = new UnityContext({
loaderUrl: ${sourcePath}/WebglSource/PublishTest/PublishTest.loader.js,
dataUrl: ${sourcePath}/WebglSource/PublishTest/PublishTest.data.unityweb,
frameworkUrl: ${sourcePath}/WebglSource/PublishTest/PublishTest.framework.js.unityweb,
codeUrl: ${sourcePath}/WebglSource/PublishTest/PublishTest.wasm.unityweb,
});
...
Can I use .gz or .unityweb files on UnityContext if having the server configured for gzip compression? Will it be slow if compression is not supported?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions