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 ?