WebGL platform build. How to fix resolution issue?

Hi, all! I’ve started the 2D course and trying to build Laser Defender for the WebGL platform in Unity 2019.4.15f1. I have a few questions:

  1. Before starting the project need to set up the right resolution for a comfortable build or it’s possible to change the resolution for a specific resolution of the build?

  2. Why in my case I have such issues:

This is when I disabled width and height in styles, but leave scale page 100%:

This is when I disabled width and height in styles, but decreased scale page:

I understand that need to change size and scale, but where these setting in Unity?

The shared game at sharemygame.com and no issues with resolution.

Looks like I was confused by the Microsoft Edge browser because it’s the only that allows opening locally WebGL.

I have same issue there. Could you find any solution ?

First of all, check your game using another browser, easiest way is to upload your game to sharemygame.com and check how your game works in Chrome or Firefox.

This topic was automatically closed after 28 hours. New replies are no longer allowed.

Privacy & Terms