Search Unity

Multidisplay: detect new display at runtime

Discussion in 'Scripting' started by piede828, Jan 21, 2021.

  1. piede828

    piede828

    Joined:
    Dec 12, 2017
    Posts:
    4
    I'm trying to build an app that can switch to a second display if this is detect while the app is running.
    The problem I have is that Display.display.length is read only at startup and it's not getting refreshed when monitors are connected or disconnected.

    Is there a way to force that refresh?

    Thanks
     
    Fenikkel likes this.