On script, I made a list of resolution options that the game will have:
if (screenMode == 1) {
Screen.fullScreen = false;
}
if (screenMode == 2) {
switch (resolucao) {
case 1:
Screen.SetResolution(640, 480, true);
resolutionOptions.text = "640 x 480";
break;
case 2:
Screen.SetResolution(720, 576, true);
resolutionOptions.text = "720 x 576";
break;
case 3:
Screen.SetResolution(768, 576, true);
resolutionOptions.text = "768 x 576";
break;
case 4:
Screen.SetResolution(800, 600, true);
resolutionOptions.text = "800 x 600";
break;
case 5:
Screen.SetResolution(1024, 768, true);
resolutionOptions.text = "1024 x 768";
break;
case 6:
Screen.SetResolution(1152, 864, true);
resolutionOptions.text = "1152 x 864";
break;
case 7:
Screen.SetResolution(1280, 720, true);
resolutionOptions.text = "1280 x 720";
break;
case 8:
Screen.SetResolution(1280, 800, true);
resolutionOptions.text = "1280 x 800";
break;
case 9:
Screen.SetResolution(1280, 960, true);
resolutionOptions.text = "1280 x 960";
break;
case 10:
Screen.SetResolution(1280, 1024, true);
resolutionOptions.text = "1280 x 1024";
break;
case 11:
Screen.SetResolution(1366, 768, true);
resolutionOptions.text = "1366 x 768";
break;
case 12:
Screen.SetResolution(1400, 1050, true);
resolutionOptions.text = "1400 x 1050";
break;
case 13:
Screen.SetResolution(1440, 900, true);
resolutionOptions.text = "1440 x 900";
break;
case 14:
Screen.SetResolution(1600, 900, true);
resolutionOptions.text = "1600 x 900";
break;
case 15:
Screen.SetResolution(1600, 1200, true);
resolutionOptions.text = "1600 x 1200";
break;
case 16:
Screen.SetResolution(1920, 1080, true);
resolutionOptions.text = "1920 x 1080";
break;
case 17:
Screen.SetResolution(2048, 1536, true);
resolutionOptions.text = "2048 x 1536";
break;
case 18:
Screen.SetResolution(3840, 2160, true);
resolutionOptions.text = "3840 x 2160";
break;
}
}
If the ‘screenMode’ variable is 1, the game will run ‘Windowed’, otherwise it will be fullscreen with resolution options.
But in ‘Canvas Scaler’ and in the ‘Game’ tab, what do you suggest me set so that the game runs well on any monitor?
In the Canvas Scaler, can I leave the Reference Resolution at 1920 x 1080 and the game will look good on both 16: 9 and 4: 3 monitors?
Would it be nice to define as ‘Free aspect’?
Remembering that my monitor is 4:3, but I don’t want to make this game only for 4:3.