React Unity WebGL provides a modern solution for embedding Unity WebGL builds in your React Application while providing advanced APIs for two way communication and interaction between Unity and React.
The 'loadingProgression' value of the useUnityContext hook does not seem to work with gzip compressed unity builds.
My host works fine with non compressed builds and reports load progress as expected.
However, if I try to host a compressed build, loadingProgression will sit at 0 until the zip file is downloaded at which point it will jump to 90. It will load and run the build, it's just not reporting the load progress.
All server side content headers are set as required.
Please avoid duplicates
Language and Compiler
TypeScript's built-in Compiler
What environment are you using?
Static File Serving
When does your problem occur?
While the Unity App is loading
What does your problem relate to?
The problem seems Module related
React-Unity-WebGL Version
9.0.4
React Version
16.14
Unity Version
2022.1.11f1
What happened?
The 'loadingProgression' value of the useUnityContext hook does not seem to work with gzip compressed unity builds.
My host works fine with non compressed builds and reports load progress as expected.
However, if I try to host a compressed build, loadingProgression will sit at 0 until the zip file is downloaded at which point it will jump to 90. It will load and run the build, it's just not reporting the load progress.
All server side content headers are set as required.
Reproducible test case
No response
Would you be interested in contributing a fix?