How can i change the width/height of the viewport for 2 different scenes within same project?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By yeeshu06
:warning: Old Version Published before Godot 3 was released.

I have managed to change the width and height of the viewport using project settings, but this changes the window size on both scenes. I would like one to be landscape and other portrait, How can i do this?

Much Appreciated.

:bust_in_silhouette: Reply From: Zylann

I think you have to do this with a script, because in project settings you can only set global options. If you want multiple options for this, use OS functions: OS — Godot Engine (latest) documentation in English

Thanks i ll take a look accordingly

yeeshu06 | 2017-02-08 10:49