Is it possible to choose the default screen in a multi monitor configuration?
I'm working on a project that requires a fullscreen window to appear in a specific monitor.
My question is: Is it possible (via C++ or Blueprint) to detect how many monitors are being used and set a default monitor in which the program will appear when launched?
An example of what is pretended is, while using a triple-monitor configuration, making the application launch in fullscreen mode in the right monitor.
Thanks in advance for all the help :)
asked Sep 01 '15 at 11:16 AM in Packaging & Deployment
Thanks for all the help. I found a really simple solution for this problem. Here's the source code if anyone comes across the same situation ;)
answered Sep 07 '15 at 04:44 PM
In C++ you got this:
First you call this to get the metrics:
And then you check how many moniters there is by checking MonitorInfo array size with
answered Sep 01 '15 at 02:04 PM
As far as I can tell Unreal does not support this natively, but it would be platform specific.
On windows you should be able to use the info here:
Essentially what you do is you enumerate all your monitors, find the one you want, and then move your application to there and maximize it.
Looking in WindowsWindow.cpp, you probably want to write a function very similar to GetFullScreenInfo that just enumerates the windows instead of using a rectangle and then gets the corresponding data from it, then use MoveWindowTo to move the window to there and MAximize to biggify it.
I think all the answers here are incomplete as they assume the following:
The only information you need is from FMonitorInfo.WorkArea Left/Top.
Follow this question
Once you sign in you will be able to subscribe for any updates here