Multidisplay setup without using the main monitor [5.4]

Hello,

Im trying to achieve a multi-display setup with the new built in multidisplay feature.Unity - Manual: Multi-display

This is my situation:

  • Monitor 1: 1920x1080 (windows main monitor)

  • Monitor 2: 1080x1920 (TV in portrait mode)

  • Monitor 3: 1280x800 (projector)

Im trying to figure out how to get it working that my standalone unity application will run on two out of the three displays using the multidisplay feature. At the moment I can make it so it works on all three monitors using the code from the API:

if(Display.displays.Length>1){
    Display.displays[1].Activate();
}
if(Display.displays.Length>2){
    Display.displays[2].Activate();
}

I also have it working using only the main monitor and the TV (monitor 2).

However, what im trying to achieve is that it will start on the second and third monitor. (NOT the main monitor (Display.displays[0]).

For some reason it always starts the standalone application also in the windows main monitor, for the setup that im using I cannot change the windows primary screen and unity cannot be displayed on this monitor. (another program is running on it that controls the unity application)

  • I tried changing the primary display in using the playersprefs and changing the registry of the application.

  • I also tried using the -multidisplay command but with the same result.

How can I achieve it that the standalone unity application will only run on my second and third monitor which are both NOT the windows main monitor?

Could the commandline paramther “-adapter N” (N is the adapter number) work for you?

Thanks for the reply, I did not manage to get it working using that parameter. However I found a different argument: -parentHWND which lets me run the application in a windows form, I changed the in-game camera to display 2 and 3 and 1 without a rendering target. This kind of works but it is not an ideal solution to my problem.

Same issues, just filed a bug report