- Home /
Supported refresh rate for current monitor.
I am building a simple options menu for my game and I do not know how to get the refresh rates for the monitor that my game is running full-screen on.
Here is basically what I have:
private Resolution[] resolutions;
private Resolution currentResolution;
private List<int> RefreshRates = new List<int>();
void Awake()
{
resolutions = Screen.resolutions;
currentResolution = Screen.currentResolution;
}
void Start()
{
for(int i = 0; i < resolutions.Length; i++)
if(!RefreshRates.Contains(resolutions[i].refreshRate))
RefreshRates.Add(rseolutions[i].refreshRate);
}
This gets the refresh rates all right, but it gets them for all my monitors. Is there a way I can only get the rates for the monitor my game is running on?
Note: I have two different monitors with different refresh rates on each.
Monitor 1: 60Hz, 59Hz, 50Hz
Monitor 2: 75Hz, 60Hz
Your answer
Follow this Question
Related Questions
Borderless window in standalone player 5 Answers
unity web player fatal error couldn't switch to requested monitor resolution 1 Answer
Change resolution, but not screen size. 1 Answer
How to change resolution of fullscreen game in Windows Phone 8.1? 0 Answers
webplayer resolution problems/issues/oddities and frame rate weirdness 6 Answers