Webgl default canvas size problem

Hi,

my WebGL game has a default resolution of 1280x720px. When I try to change the resolution in index.html file, it works while the loader is active, but when the game is loaded, the resolution is switched back to default.

Can somebody help my with this one? I’m using Unity 5.1.3f1 version, I know that this problem is resolved in 5.2 version of Unity, but currently i can’t update do that version.

Thx in advance

We won’t backport this change to 5.1. You can still change the default resolution in the Player Settings in the editor (but you will need to rebuild your player for the change to take effect).