I tried to make a build of the Space Defender game and when I play it, the window size is a lot wider than I’d like it to be. How can I make a build that would generate a window more in line with how we designed and played our game in the editor?
Ok, I figured it out. I made a “ScreenSize” script and attached it to the MainCamera PreFab which set the resolution to my desired resolution.
void Start()
{
Screen.SetResolution(360, 640, false);
}
Good job!
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.