My first problem is with the unity GUI. I need it to scale with the screen resolution. This is mostly fine but is difficult for things like font size/padding/margins etc.
I need to linear scale these things manually I believe.
My solution is to develop for a set resolution and then scale those values in a script based on the current resolution relative to the resolution that the values were set for.
So I have two questions.
How do I set the specific resolution for the Unity editor “Game” window. At the moment I can set the aspect ratio and drag out the window but I really just want to set the screen size manually. As in, type 1024x768. There is more than one person working on this project so it is important to be able to easily keep the size we develop for the same.
Is there a better way to deal with my first problem I haven’t thought of?
You can set your game window default resolution in Player Settings. It will however, still scale down the window based on aspect resolution of your default resolution if your allowed game window is smaller than your stated default resolution.
The player settings are for once the game is built though right? I need to change it for the editor window. So instead of building every time we can just hit play and have the editor window at the correct resolution.
Once you have set the default resolution, the resolution option will show up as one of the options in the resolution dropdown box in the game view window. But it’ll only show the full proper resolution if the resolution you set is smaller than your computer’s resolution. Otherwise, it’ll only display an aspect ratio based on your default resolution.
Ty, that did it. The default resolution was already defaulted to 1024x768 so I didn’t connect the dots or see the standalone resolution under the list of aspect ratios. Problem solved