Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting screen orientation at run-time not working on iOS #76940

Closed
maran opened this issue May 11, 2023 · 1 comment · Fixed by #78132
Closed

Setting screen orientation at run-time not working on iOS #76940

maran opened this issue May 11, 2023 · 1 comment · Fixed by #78132

Comments

@maran
Copy link

maran commented May 11, 2023

Godot version

3.5.1

System information

iOS

Issue description

It seems that OS.set_screen_orientation(OS.SCREEN_ORIENTATION_SENSOR_PORTRAIT) or OS.set_screen_orientation(OS.SCREEN_ORIENTATION_SENSOR_LANDSCAPE) does not force a scene into the respective orientation on iOS devices.

On Android this behavior seems to work as intended.

Steps to reproduce

  1. Create a new project
  2. Create two buttons and attach a method that sets the screen orientation
  3. It does not change anything on iOS

Minimal reproduction project

RotationTest.zip

@Calinou Calinou changed the title Setting screen orientation per scene not working on iOS Setting screen orientation at run-time not working on iOS May 11, 2023
@maran
Copy link
Author

maran commented Jun 6, 2023

I can confirm I had the same issues with Godot 4.0.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants