Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Detect new screen connection/disconnection during program execution

Discussion in 'Scripting' started by JuiceArt, May 10, 2017.

  1. JuiceArt

    JuiceArt

    Joined:
    Apr 8, 2017
    Posts:
    3
    Hello, I am using Unity Multi-display system (https://docs.unity3d.com/Manual/MultiDisplay.html).
    For some reasons new monitors could be connected to the system during program execution, and unfortunately Display.displays array is not updated in such situations.
    So, is there any opportunity to detect new screen during execution, or the only one way is to restart the app ?
     
    piede828 likes this.
  2. piede828

    piede828

    Joined:
    Dec 12, 2017
    Posts:
    4
    hey I've encountered the same problem - did you find a solution?
     
  3. wallowe

    wallowe

    Joined:
    Mar 1, 2023
    Posts:
    2
    we also encountered the same problem, can anybody help ?
    version of unity create is 2021.3.15f1c1.
     
  4. wallowe

    wallowe

    Joined:
    Mar 1, 2023
    Posts:
    2
    what's more, when the first unity app is not responded with new connected display. but then we launched another unity app, we found it can detect this new display device and it's *Display.displays* is 2.