With only the update from 6000.0.34f1 to 6000.0.35f1 (still there in 36f1), if webGLDecompressionFallback is set to 1 , we are getting the exception :
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'match')
at Object.cacheControl (WebGL.loader.js:1:953)
at T (WebGL.loader.js:1:40660)
at P (WebGL.loader.js:1:44684)
at WebGL.loader.js:1:47416
Hi, @oliver-noodle. If this is a consistently reproducible issue, please report the bug via the Bug Reporter (“Help → Report a Bug…” in the Editor). Make sure to attach the project and write reproduction steps (or attach a reproduction video). Cheers!
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'match')
at Object.cacheControl (ASTC.loader.js:1:952)
at R (ASTC.loader.js:1:110686)
at N (ASTC.loader.js:1:114710)
at ASTC.loader.js:1:117442
I confirm the Azurs solution, make sure to add arguments and workerUrl properties (which is a copy of the dataUrl property) in the configuration object.
Don’t know what the workerUrl is for, because it’s not used anywhere.
createUnityInstance(document.querySelector("#unity-canvas"), {
arguments: [],
dataUrl: "Build/myGame.data.unityweb",
workerUrl: "Build/myGame.data.unityweb",
frameworkUrl: "Build/myGame.framework.js.unityweb",
codeUrl: "Build/myGame.wasm.unityweb",
streamingAssetsUrl: "StreamingAssets",
companyName: "Company",
productName: "Product",
productVersion: "1.0.0",
// matchWebGLToCanvasSize: false, // Uncomment this to separately control WebGL canvas render size and DOM element size.
// devicePixelRatio: 1, // Uncomment this to override low DPI rendering on high DPI displays.
});
Alternatively, If you don’t do many iterations, you can also remove the workerURL check from the loader.js
to resolve this error.
(By unminify the loader.js, you can remove the lines 3376 to 3383, he can vary depending of the options you have checked in the player settings)