-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
iOS sensor_landscape
orientation only allows landscape left orientation
#28848
Comments
I have the same issue. Changing the orientation in Xcode directly gives the same results (stuck in landscape left, or portrait with black bar). |
In Project Settings > Display > Window > Handheld > Orientation : sensor |
@Benoit9 I change to sensor_landscape, It worked too. |
One of these days these things should be unified, when the settings in xcode do not line up with the setting in projects things get wonky. I've run into this a few times with ARCore and ARKit (yes the same issue exists on Android) Easier said then done though :) |
Suggestion: add a tooltip in the export settings pointing to the project settings. e.g. "See also: Project Settings > Display > Window > Handheld > Orientation" |
@levis501 Unfortunately, export preset settings can't have tooltips yet, so we'd have to implement that feature to display a tooltip. |
I run into the same thing, Orientation in Project Settings is set to sensor_landscape, the Orientation setting in Export seems to not exist anymore in 3.4.4, and the game ist stuck on landscape left on IOS (on Android, it rotates between landscape left and right as intended). Is it still possible to fix it by changing any other setting? |
@nanitesnanites Please upload a minimal reproduction project to make this easier to troubleshoot.
In 3.4 and later, the duplicate Orientation setting in the iOS export preset was removed in favor of the project setting: #48943. |
@Calinou just a simple scene with an arrow to indicate orientation. Orientation in Project Settings is set to sensor_landscape. I also checked in XCode that both Landscape Left and Right are checked when importing the project, and they are, but the screen always stay at Landscape Left. Edit: tested on iPhone 7 iOS 15 |
I wonder if the issue is here: godot/platform/iphone/view_controller.mm Lines 201 to 202 in 59e84be
Unlike In contrast, you can see that the Xcode generator adds both options: godot/platform/iphone/export/export.cpp Lines 576 to 580 in 59e84be
This quirk is present in both |
sensor_landscape
orientation only allows landscape left orientation
It also seems like the problem can be reproduced in |
Adding |
Is this still reproducible in 4.0 RC 3 or later? CC @bruvzg |
|
Godot version:
3.1
OS/device including version:
Ipad ios 11.3.1
Issue description:
In project setting > handheld > orientation = landscape
In Export > IOS > orientation > check on landscape left and landscape right
Issue 1. After build my game ipad, it can't rotate. it stuck in landscape left.
Issue 2. So i try to build my game with only landscape right so i check only landscape right. image below
The text was updated successfully, but these errors were encountered: