Hello
I have script that shows available screen resolutions in my dropdown. It works.
Resolution[] resolution = Screen.resolutions;
res = resolution.Distinct().ToArray();
strRes = new string[res.Length];
for (int i = 0; i < res.Length; i++)
{
strRes <em>= res<em>.width.ToString() + "x" + res_.height.ToString() + " @ " + res*.refreshRate.ToString() + "Hz";*_</em></em>
}
rDropdown.ClearOptions();
rDropdown.AddOptions(strRes.ToList());
rDropdown.RefreshShownValue();
But I would like to remove some unusable screen resolutions that has height < 720. If I use if (res<em>.height >= 720)
befor strRes <em>= res<em>.width.ToString() + "x" + res_.height.ToString() + " @ " + res*.refreshRate.ToString() + "Hz";
than I really can see only resolutions with height =>720. My problem is that in dropdown all resolutions with height <720 make empty space now.[169125-dropdown.jpg*|169125] Any ideas how one can get rid off those empty gaps?*
PS Sorry for my poor English:)
_*