Built game and editor run at different sized windows?

Godot Version

Godot 4.4

Question

Hey all! I’m working on a mobile game and everything is going smoothly (so far!) but its a bit hard to work on the game from my PC. When I build the game and put it on my phone everything looks fine (in terms of scale) but when I run it on my pc through the editor, the window is so big I have to spend time resizing the window. Its super annoying.

In my Project Settings I have my Viewport Wodth set to 1440 and my Viewport Height set to 2560. Which looks perfect on my phone, but is massive on my PC. Is there a way to have it run at a different size when I’m running through the editor?

I’m running it in windowed mode naturally. I can do full screen and it works, but the rstios are all off so I won’t want to do it that way. I can’t find any other settings that would make this work for me, so any help at all would be great!

  1. Go to Project Menu → Project Settings…
  2. Select the General tab (the default).
  3. Turn on Advanced Settings in the upper right-hand corner of the window.
  4. On the left select Window under Display.
  5. At the bottom of the Size section set the Window Width Override and Window Heigh Override variables to the resolution you want on your computer.

Awesome!!! Thanks so much!

1 Like