Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

UI not interactible with multiple displays after upgrading to 5.5

Discussion in 'UGUI & TextMesh Pro' started by lylat, Dec 8, 2016.

  1. lylat

    lylat

    Joined:
    Sep 12, 2012
    Posts:
    28
    Hello,

    I have a scene where I have a VR camera rig which is "display 1" and another camera which can be used to follow and look at the camera rig on "display 2".

    I had a UI which allowed a user to change the VR users environment etc which was on display 2 and not visible to display 1. I upgraded to 5.5 just yesterday and have not been able to get the UI to start working again. in fact display 2 will not even appear in a standalone windows build on the second screen.

    Code (CSharp):
    1. if (!_hasActivatedScreens)
    2.              {
    3.                  Debug.Log("displays connected: " + Display.displays.Length);
    4.                  if (Display.displays.Length > 1)
    5.                      Display.displays[1].Activate();
    6.                  if (Display.displays.Length > 2)
    7.                  {
    8.                      Display.displays[2].Activate();
    9.                  }
    10.                  _hasActivatedScreens = true;
    11.              }
    Above is the code for activating the second screen or third if necessary.

    Any help would be appreciated.

    Cheers
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    4,223
    We recently re enabled multi display support for UI. The old behaviour would send input to every display regardless of where the input actually was however it sounds like maybe something else is going on here as you should still be able to see the actual ui.
    What version did you upgrade from?
     
  3. lylat

    lylat

    Joined:
    Sep 12, 2012
    Posts:
    28
    I was at 5.4.1f and the second screen UI was working correctly as far as I could tell as I was not using the first screen for any mouse inputs.

    After upgrading to 5.5 I got this issue.

    However, I did find a reasonable solution that works for me currently, which was to set the second screen which had the UI as the primary screen and set the UI to also be displayed to it. Which works as I need it to currently. (It does feel very shimmed though)
    (EDIT) I am able to see the UI, I just can't interact with it.
     
unityunity