Search Unity

Multi-display problem when using two different aspect ratios (16:9 and 21:9)

Discussion in 'Editor & General Support' started by reinfeldx, Jul 23, 2019.

  1. reinfeldx

    reinfeldx

    Joined:
    Nov 23, 2013
    Posts:
    164
    I'm developing an interactive marquee for an arcade game using an ultrawide monitor. I've done my best to set up the game to use multiple displays but I can't get the resolution of the ultrawide monitor to display in 21:9 while my main game is running in 16:9. Help?

    I've got this code attached to my game's main camera:
    Code (CSharp):
    1. public class DisplayActivator : MonoBehaviour
    2. {
    3.     private void Start()
    4.     {
    5.         if (Display.displays.Length > 1)
    6.         {
    7.             Display.displays[1].Activate(2560, 1080, 60);
    8.         }
    9.     }
    10. }
    The problem is that the ultrawide monitor keeps a 16:9 ratio and is aligned to the left:
    IMG_6283_2.jpg
     
  2. reinfeldx

    reinfeldx

    Joined:
    Nov 23, 2013
    Posts:
    164
    Bumping this. (Under a bit of a time crunch.)
     
  3. ismaeel_unity

    ismaeel_unity

    Joined:
    Oct 21, 2019
    Posts:
    12
    Facing the same problem. I hope someone will address this.
     
  4. ismaeel_unity

    ismaeel_unity

    Joined:
    Oct 21, 2019
    Posts:
    12
    So this bug is finally fixed in Unity 2020.1.0.a3. Just verified.

    Monitor 1 : 1080x1920 Portrait
    Monitor 2 : 1600x900 Landscape

    Working perfectly with native resolution on both displays.
     
    fffMalzbier likes this.