Can you set a specific list of allowed resolutions?

As the title says can you specify only a list of accepted resolutions? I am currently getting all available resolutions from Screen.resolutions and using them in an options menu. The problem I have is that I don’t want the game to run any higher than 1920 x 1080. Some machines now obviously can run much higher resolutions than this.

Can I set in Unity what resolutions are to be ignored or will I have to hard code a list of acceptable resolutions myself? (In which case Screens.resolution might be pointless).

Try this :slight_smile:

void Start() {
    Resolution[] resolutions = Screen.resolutions;
    foreach (Resolution res in resolutions) {
        if(res.width >= 1920 && res.height >= 1080)
	    {
	        break; //To break out of the foreach loop
	    }
    }
}

Sorry if i made a mistake, but i have tested it, so it should work