Override Project setting Display > Window > Width & Height

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Domarius

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?

:bust_in_silhouette: Reply From: ricardohogan

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