Screen.resolutions problem

Hi.

Weird problem - I moved my Unity project from Mac OSX to Windows 7 x64 and I’m getting some strange errors / problems.

On the start of my game/app I do something like :

var resolutions : Resolution[] = Screen.resolutions;
// Print the resolutions
for (var res in resolutions)
 {
print(res.width + "x" + res.height);
}

That’s the code, from the scripting reference.

On the Mac, everything was ok - I was getting the full list of available resolutions. Now, I’m getting only the first one and the result of the code above is :

Any ideas ? Is something wrong with my Windows ?

One more - if I init the resolutions list before the Start() function, I’m getting an error :

Mac was ok, with initializing the list before the Start function - are there any differences ?

try:

for (res in Screen.resolutions)
   print(res.width + "x" + res.height);

what is the result ?

The same :

It prints only the lowest resolution.

Please can you file a bug report for this (menu: Help > Report A Bug).

I reported the problem, but I also figured out that the problem occurs only on my Windows desktop PC. On the Mac, everything is still ok.