+1 vote

Under a particular condition, I want to have my project ignore the values I set for Window Width and Height (352x256), and instead use smaller values (320x240), which is zoomed in on the normal game window slightly. And also shift the origin of the Viewport down and to the right by 16 pixels each.

What's the easiest way to set the Viewport position and size in script?

in Engine by (21 points)

1 Answer

0 votes

I will use the camera node instead ,then I set it through the script. I learn it from a youtube tutorial :


by (39 points)
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 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 webmaster@godotengine.org with your username.