- Home /
Application window changing positions on resize?
I have an option in my game to change the size of the window (similar to a resolution change dialogue), problem is, whenever the resolution of the window is set it moves the game window to the center of the whatever display(s) the user is using.
For folks using a single monitor this isn't really an issue, but for others using multiple monitors it moves the game window to the average middle of all the displays, the worst thing it could do.
Doing a bit of research here has shown that the only way to set the position of a window is using custom dll's, something I'm not familiar with. Is there a way to gather the position of a window using a similar method? I assume what I'd have to do here is gather the window position, then after changing the resolution set the window to that position again (something I shouldn't have to do at all but apparently I do).
Thanks!
Your answer
![](https://koobas.hobune.stream/wayback/20220613121823im_/https://answers.unity.com/themes/thub/images/avi.jpg)