When I try to call Screen.SetResolution() from either Start or Awake I’m getting some crazy display errors (or my machine freezes).
I am building for standalone on Mac (Snow Leopard).
Our game is getting rejected from the App Store because when the maximum resolution is chosen from the resolution dialog, the dock interferes with the game window.
We are trying to devise a solution that involves setting the resolution at startup, but are having some problems doing so.
We’ve already tried a couple approaches:
- Make the game start at 80% of the monitor’s maximum resolution
- Choose one of three pre-determined resolutions at startup based on user’s monitor size
- Make the game window slightly smaller if it is too close to the maximum resolution at startup
Unfortunately, all of these approaches involve manipulating the display resolution at startup. When we try to do this we either get a frozen computer or a game window full of nonsense.
Is it possible to call Screen.SetResolution at startup?
If not, does anybody have any thoughts on the best way to approach this?