matchWebGLToCanvasSize was not set properly in hooks/use-unity-arguments.ts #510
Unanswered
leomav
asked this question in
Help Wanted!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We were having trouble setting the matchWebGLToCanvasSize to false in order to specify manually the resolution of the unity canvas. Although we were setting it to false, we were printing it in console via unityInstance and it was still true.
We found that in use-unity-arguments the matchWebGLToCanvasSize was always set to true no matter the unityProps coming in, and made an adjustment in order to first check if the unityProp is of type boolean. If not boolean ('undefined', 'string', etc..), true should go as default as intended.
Just did a PR we think it should solve the issue
Beta Was this translation helpful? Give feedback.
All reactions