-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Use an enum to represent screen orientation in the Project Settings #48939
Use an enum to represent screen orientation in the Project Settings #48939
Conversation
case DisplayServer::SCREEN_LANDSCAPE: | ||
orientations += "<string>UIInterfaceOrientationLandscapeLeft</string>\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can anyone confirm that SCREEN_LANDSCAPE
has the left side of the device pointing upwards? I'm just guessing here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://developer.apple.com/documentation/uikit/uiinterfaceorientation/landscapeleft seems about right. But I can't test it at the moment.
case DisplayServer::SCREEN_REVERSE_LANDSCAPE: | ||
orientations += "<string>UIInterfaceOrientationLandscapeRight</string>\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above – it should be the opposite.
90067b8
to
10c052d
Compare
10c052d
to
c5d9134
Compare
- Tweak the setting property hint to be more informative. - Make the setting a "basic" setting so it appears when Advanced Settings is disabled. - Remove redundant orientation setting in the iOS export preset. The project setting is now used (like on Android). Projects upgrading from a previous version will have to set the screen orientation again in the Project Settings if it wasn't set to the default value ("landscape").
c5d9134
to
660952a
Compare
Thanks! |
master
version of #48943 (not backwards compatible).Projects upgrading from a previous version will have to set the screen orientation again in the Project Settings if it wasn't set to the default value ("landscape").
This closes #45422.