- Home /
[5.4] Multi-display without windows main monitor
Hello,
Im trying to achieve a multi-display setup with the new built in multidisplay feature. https://docs.unity3d.com/Manual/MultiDisplay.html
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?
EDIT: Upgraded to Unity official 5.4 release, same result
Hi! @$$anonymous$$otek_Gijs can you show me the full scripts for the display because I tried to do it but it didnt come out right, thank you and for your problem have you tried to just show 1 monitor screen and disabled the windows monitor screen. (not sure if it works though)
Answer by DenisTribouillois · Sep 20, 2016 at 08:05 AM
I have a similar setup with 4 screens (main + 3 others) and I achieve what you want with some easy tricks.
If you play in the editor, add multiple Game tabs, select the monito to display and put them in the desired monitor. You can free your main monitor this way.
If you build the game, select Windowed and minimize the window on the main monitor when it lauches. In my case, the 3 other screens are fullscreen and I can use my main monitor.
So glad to find this. It sounds like you are/were doing almost exactly what I want ... I'd like to have 3 cameras, each displaying full-screen to a separate monitor; but I'd also like to have a windowed display on a 4th (main) monitor - this 4th display should display one of those 3 cameras (but if it helps, I could also add a 4th camera).
Do I understand correctly that I should follow your tips, and then simply not $$anonymous$$imize the window on the main monitor? It isn't clear to me whether you have multiple cameras in your setup?
Thank you!
Your answer
Follow this Question
Related Questions
Works in the editor, but not when I publish it.. whats wrong...? 0 Answers
About the about dialog in MacOs Standalone builds. 1 Answer
Audio wont play/stop in standalone mode, but works in editor 0 Answers
How to Change Screen Resolution in game 2 Answers
Published project quits unexpectedly? 0 Answers