Hi all!
TL;DR:
Our Mac client is not respecting the aspect ratios or width/height we set in Player Settings.
DETAILS:
Mac OS X dev machines, some on Lion (10.7), one on Mountain Lion (10.8). One machine (the Mountain Lion one) shows different width/height choices for our game when opened with the dialog. In the Player Settings, we check ONLY the 16:9 option (our game layout requires that aspect ratio, and things go offscreen when it’s not respected). We’ve also set a default size that is 16:9.
However, when I open the game on the Mountain Lion (ML) machine, it is presented only with a single 16:10 ratio and size to start the game windowed - and the size is the full size of the screen (1680X1024).
If I hook the ML machine up to a Cinema display, it is presented with a much larger option (25x16 or something - again, the full size of the display), which again, is not 16:9. Again, why couldn’t it give me just plain ol’ 1600x900?
Why won’t it let me choose any arbitrary smaller size?
Why won’t it respect the 16:9 limitation we specified in the project?
Why does it matter what the aspect ratio of the monitor, when the requested size is much smaller?
Where does Unity store the ‘last run’ size?
The machine giving problems has two differences:
- Mountain Lion vs. Lion (I HIGHLY doubt that’s a problem)
- In the Unity Editor, I believe it erroneously had 16:10 specified in the Game window.
I think the latter is the problem - that somehow because the Editor “Game Window” has 16:10 specified, that is getting confused into the situation somehow.
One final weirdness: This morning, I had a developer build me a new executable on one of the Lion machines (on which it’s working). I copied it to the ML machine, and the first time I ran it, it DID open in 16:9 ratio!!! Yay! Only it was a little small (800X450?) So I chalked it up to “the problem is with apps that are built on this machine”. I re-ran it with Option held down to (hopefully) pick a larger - but still 16:9! - resolution. And once again, I was presented only with the choice of 1680x1024 - full screen, wrong aspect ratio.
So it has to do with running them on THIS machine.
What could be polluting it? Running the same app (regardless of where it’s built - we tried exporting in both directions) will work on some machines (iMacs), but not on the MacBook Pro.
Thoughts?
THANK YOU!
Aaron
