Making a build with correct resolution and aspect ratio

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! :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms