zaro

How to Change Build Resolution in Unity?

Published in Unity Build Settings 3 mins read

Changing the build resolution in Unity is done through the Project Settings, specifically in the Player settings under the "Resolution and Presentation" section.

To configure the resolution and aspect ratio settings for your game build, follow these steps:

Accessing Resolution Settings

  1. Open Project Settings: In the Unity Editor, navigate to the menu bar.

  2. Select Player Settings: Go to EditProject SettingsPlayer.

    • This opens the Project Settings window focused on the Player module, where you configure settings for the built game.

Configuring Resolution and Presentation

Once in the Player settings, you will find the relevant options:

1. Expand "Resolution and Presentation"

  • Locate the section titled "Resolution and Presentation". Expand it if it is collapsed. This section contains controls for managing how your game window or full-screen display appears.

2. Adjust Resolution and Aspect Ratio

Within this section, you can set the desired resolution and handle aspect ratio settings.

  • Setting Resolution: You can typically specify default resolutions for different platforms (e.g., standalone builds). For standalone builds, you can often control whether the game starts in full-screen or windowed mode and set the default resolution for either.
  • Managing Aspect Ratio: According to the reference, to change your build resolution and aspect ratio settings, go to [Edit → Project Settings → Player], then expand the “Resolution and Presentation” section if it's not already. It's crucial to ensure the aspect ratio is handled correctly. To prevent stretching and black bars, you'll want to make sure the aspect ratio matches the dimensions of your screen.

Understanding Aspect Ratio

The aspect ratio is the proportional relationship between the width and the height of the screen. Common aspect ratios include 16:9 (widescreen) and 4:3 (standard definition).

  • Matching Aspect Ratio: If your game content is designed for a specific aspect ratio (e.g., 16:9), running it on a screen with a different aspect ratio (e.g., 4:3) without proper handling can lead to:
    • Stretching: The image is stretched to fill the screen, distorting proportions.
    • Letterboxing/Pillarboxing: Black bars appear on the sides (pillarboxing) or top/bottom (letterboxing) to maintain the correct aspect ratio without distortion.

Unity provides options in the Resolution and Presentation settings to control how different aspect ratios are handled, often allowing you to choose between scaling, pillarboxing, or letterboxing.

Summary Table

Here's a quick overview of the path:

Action Path in Unity Menu Section in Project Settings
Change Build Resolution EditProject Settings PlayerResolution and Presentation

By configuring these settings before building your project, you define the initial display characteristics of your game.