Does Screen.resolutions work? My laptop has a 1080p screen and my secondary monitor has a 1080p screen. Here are the resolutions I get from Screen.resolutions:
Here’s a modified snippet I used to get the results:
List<Resolution> validResolutions = new List<Resolution>();
string validResStr = string.Concat("Total: ", Screen.resolutions.Length, ", Valid Resolutions: ");
foreach (Resolution res in Screen.resolutions)
{
// if ((res.width >= 800) (res.height >= 600) (res.refreshRate == 60))
// {
validResolutions.Add(res);
validResStr = string.Concat(validResStr, res.width, "x", res.height, "@", res.refreshRate, ", ");
// }
}
PrintOutSomeText(validResStr);
I’m currently implementing the in-game video settings and a resolution selection is a requirement (not using the “Graphics tab → Screen resolution” setting).
Is there a way to get this to work? I’m using Unity 4.0.0b7.
Thanks!