Hi!
I tried my WEBGL Project for the first time on Microsoft Edge, and it looks like the loading bar isn't showing the download progression.
Here is the code generated by the Webgl Template of Unity 2020.1.3f1
createUnityInstance(canvas, config, (progress) => {
spinner.style.display = "none";
progressBarEmpty.style.display = "";
console.log("progress : " + progress);
progressBarFull.style.width = `${100 * progress}%`;
})
I did some test and it looks like the function with (progress) is called each time the loading progress (~150 times in my case), but the "progress" variable stay at 0. It just goes up to 0.9 instantly at the end and the loading ends.
On chrome and firefox, the "progress" variable is correctly going up progressively between 0.0 and 0.9.
My guess is that the loader.js can't access the file length, but if so, why is this only on Microsoft Edge?
Is there a little tweak to do to get it working on every commonly used browser?
Thanks in advance!
↧