Is it normal for the WebGL build to chop off a few pixels vertically?
I've been running into a strange issue with the resolution of my WebGL build and can't seem to find any answers. I'm making a game with a designated resolution of 1152x648. I've set this reference resolution for both standalone and WebGL in the player settings. The standalone player builds to the intended resolution just fine, but for some reason the WebGL build is losing some vertical screen space. Here's a screenshot to demonstrate:
The left side is how the game looks in standalone player. This matches the intended resolution of 1152x648. On the right side is the WebGL player. The width is 1152px as it should be, but for some reason the height is only about 610px. If I check the index.html file or check the game container div in the console it claims the container is 648px even though it clearly isn't. Aside from the side-by-side comparison that shows a clear discrepancy, I used AutoHotKey's window spy to measure the size of all 3 players and the WebGL player is, as mentioned, only coming out to a height of 610px.
I've tried running the build from github as well as localhost to ensure the host wasn't causing the issue. I've also tried both Chrome and Firefox and ensured my text zoom was set to default for both browsers. In all cases the build is still only coming out to a height of 610px.
Thanks for taking the time to read this. Any help would be greatly appreciated, as google is not seeming to find many other people who have encountered this issue. Also sorry about the formatting. This is my first time using this forum and the line breaks do not seem to be working properly for some reason when I add two spaces and hit return as indicated by the markdown text helper.
Your answer
Follow this Question
Related Questions
Disable fullscreen for webgl 4 Answers
Is it possible to change WebGL game resolution inside the canvas ? 0 Answers
Does the Unity Scaling settings for a model impact the texture detail? 0 Answers
Make static object height match the max height of a bouncing ball in any resolution 0 Answers
Some question about making Android game. 0 Answers