How to autorotate game within landscape mode

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

I have made a game in landscape mode, however it doesn’t auto-rotate to landscape and reverse landscape automatically when the user flips the phone(Android). How to enable this functionality?

What code to you have? Reading Multiple resolutions — Godot Engine (stable) documentation in English it should stay in landscape right?

clemens.tolboom | 2021-07-26 19:51

Yes it stays in landscape mode. Within landscape mode you can flip the phone. So I wanted the game to automatically switch between landscape and reverse landscape mode. What @vnmk8 suggested, worked.

InfamousSlayer | 2021-07-27 03:46

:bust_in_silhouette: Reply From: vnmk8

under Project settings > General > Display > Window > Handheld > Orientation. choose sensor_landscape.
and the phone should have Auto-rotate enabled

Thanks, this worked.

InfamousSlayer | 2021-07-27 03:44

1 Like