Commandline -WinX -WinY don't work (get overridden)
I'm using 4.16.1 and making a multiplayer game that I need to test via standalone fairly often, so I have a shortcut each for server and client launch, where I attempt to place the windows using commandline e.g.:
UE4Editor.exe "" MainMenu -game -log -windowed -ResX=1280 -ResY=720 -WinX=0 -WinY=30 ConsoleX=0 ConsoleY=0
When the window initially pops up - it is correctly placed where I want it, but after it loads the startup map it centers itself on the screen.
I've tried making sure CenterStandaloneWindow=false just in case that was affecting it, but it doesn't seem to help.
The Console / Log window correctly appears where I position it and does not move.
Any workarounds for this? Messing around with window focus & positioning them manually with the mouse every launch sucks a lot of time out of the day.
asked Jun 05 '17 at 10:18 PM in Bug Reports
The possibility to specify window location and size is extremely important to me so I had to find some workaround. I'd like to share it. Build the Engine with updated SceneViewport.cpp:
This probably will break the windowed full-screen mode. So if you don't want to lose any other functionality you will have to prepare complete fix or some proper workaround (i.e. reshape a window via Blueprints). As for my situation, I need only windowed mode with custom location/size since I launch multiple game instances simultaneously.
answered Aug 29 '17 at 04:46 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here