Iam using a dropdown to change the resolution with a script. But somehow the game zooms really far in or does some other weird stuff when i do this. This doesnt happen when I start the game at the resolution only when i change it from inside the game.
Piece of code thats changing the resolution:
public void ChangeResolution(){
switch (ResolutionDropdown.value){
case 0:
Screen.SetResolution (1280,720,false);
break;
case 1:
Screen.SetResolution (1600,900,false);
break;
case 2:
Screen.SetResolution (1920,1080,false);
break;
case 3:
Screen.SetResolution (2560,1440,false);
break;