The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

0 votes

I am working on a project and the window size has to be 1754x1240 px, but that's too big for my monitor, which means i had to turn the full screen mod on to be able to see the whole thing. That in turn means that basically all debug that includes printing things is virtually impossible. How would I, by code, set the size of the window (i.e. stretch the window, as if I took its edge and resized it) so that it fits on my monitor and I can manipulate it?
Sorry if I'm not specific enough, please ask me questions if neccessary.

EDIT: Figured it out right after asking the question. The problem persists though, as the top of the screen is still above the monitor and it cannot be dragged down. How does one do that?

Godot version 3.2.3
in Engine by (91 points)

1 Answer

0 votes

Project settings -> Display -> Stretch
Mode = 2d
Aspect = expand

If you really need it be done through code, gettree().setscreen_stretch(stretch, aspect, minsize)

If I misinterpreted your question, pls let me know

by (410 points)
edited by

I already had that done, but i also already solved the problem myself, thanks :)

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.