loadingProgression value of useUnityContext hook reports nothing for compressed builds #454
Unanswered
mattsykesd2
asked this question in
Help Wanted!
Replies: 1 comment 1 reply
-
Hi. I've searched online for similar issues and might have found a possible candidate which might cause this issue. I've included this fix in the latest release of version |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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?
Beta Was this translation helpful? Give feedback.
All reactions