Search Unity

Different screen resolution issue

Discussion in 'General Discussion' started by Tech27, Apr 7, 2022.

  1. Tech27

    Tech27

    Joined:
    Dec 13, 2016
    Posts:
    8
    When using different resolutions the UI screen should be proportionally change. But I am using a system with screen resolution of 3240 x 2160. Because this resolution is not an default standard one like 4K(3840 x 2160), 2K(2048 x 1080) or HD(1920 X 1080). How should I proportionally change the resolution for all screens including my systems resolution. I also don't want to change my resolution from systems properties to fit the build.
     
  2. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    8,194
    Your question seems a bit vague, are you having problems setting your games resolution or scaling your UI?

    If this a UI question probably best to try and anchor your UI elements to areas of the screen and scale with the resolution.

    If it's a resolution issue you should consider adding an Options screen where the player can choose Unity - Scripting API: Screen.SetResolution (unity3d.com)