Multidisplays issue
Hello. I work with Unity 5.5.0f3 and I have two monitors and therefore two displays, and two cameras. I added this script to my main camera:
void Start() { Debug.Log("displays connected: " + Display.displays.Length); // Display.displays[0] is the primary, default display and is always ON. // Check if additional displays are available and activate each. if (Display.displays.Length > 1) Display.displays[1].Activate(); if (Display.displays.Length > 2) Display.displays[2].Activate(); }
However, it doesn't work. It shows Display.displays.Length is 1 instead of 2. I think I follow the instructions so I don't know what I'm doing wrong. Any idea?
Answer by pawpoulsen · May 10, 2017 at 10:31 AM
Hello damqui, did you figure it out? I'm having the same issue.
Answer by damqui · May 11, 2017 at 08:08 AM
Unfortunately I didn't. I still get Display.displays.Length = 1, but despite that my project works so... I you find something please tell me.
Your answer
![](https://koobas.hobune.stream/wayback/20220612120702im_/https://answers.unity.com/themes/thub/images/avi.jpg)