#Restore / programmatically set editor window position

6 messages · Page 1 of 1 (latest)

vestal remnant
#

When I start the Godot editor, it always starts in fullscreen. When I un-fullscreen it, the window is rather small. I have a huge 49" ultrawide display, so neither of these options are great. Every time I start the editor, I have to manually resize the window so I can see it alongside other windows.

I am developing a GDExtension in C++ and start the Godot Editor as the debuggee from Visual Studio code, so this is a bit tedious.

I am aware of the -w command line option, but I would like the Godot editor to remember its window position. If that is not possible, I would like to be able to use a command line option to set it to a fixed size and position. The --resolution <W>x<H> and --position <X>,<Y> command line options
seem to have no effect.

Running on Windows, Godot Engine 4.4.1 stable.
Thanks for any help on this!

chrome patrol
#

Since the godot editor itself is a godot project, you should be able to use get_window() to get the Window node displaying the editor and change its position using the Window class (?)

vestal remnant
#

Hm that is not loaded unless my game is running. I'm really just talking about the editor. I want to launch it as a program with a specific window size.

#

OK, digging more into github I found something. Testing.