Search Unity

Possible to set different resolutions on multiple displays?

Discussion in 'Editor & General Support' started by Dreamwriter, Jan 25, 2017.

  1. Dreamwriter

    Dreamwriter

    Joined:
    Jul 22, 2011
    Posts:
    472
    If I do this:

    Screen.SetResolution(A, B, true);
    Display.displays[1].Activate(C, D, 60);

    ...that sets the resolution of both screens to a resolution of AxB, and puts a CxD window on the second screen. What I want is to set the fullscreen resolution of both screens separately. Is there a way to do that?
     
  2. Dreamwriter

    Dreamwriter

    Joined:
    Jul 22, 2011
    Posts:
    472
    Actually, with more testing, what's happening is Screen.SetResolution is only affecting the primary display. The second display stays at its resolution no matter what I do (and Unity thinks it's 2880x1620 while it's set in Windows to 1920x1080). There doesn't seem to be a way in Unity to set the screen resolution of secondary displays (only the Rendering resolution, which is different from the actual native resolution).