OS.get_screen_orientation() returns LANDSCAPE, although project is set to PORTRAIT on android.

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

What could that be?

where did you set it?
there is orientation setting at Project settings > General > Display > Window > Handheld > Orientation.
and… also Export > Screen > Orientation in android case.

volzhs | 2018-02-28 15:59

Both of them are set to PORTRAIT. What else could it be? Maybe the bug from Godot 1 is back somehow?

Footurist | 2018-02-28 16:10

I met the same problem, how to correct it?
I am sorry that made a mistake just now,i answered the question.

alistudio | 2018-08-02 14:28

:bust_in_silhouette: Reply From: rakkarage
var win := get_viewport_rect().size
if win.x > win.y: