Search Issue Tracker
Not Reproducible
Votes
1
Found in
5.2.1f1
Issue ID
734695
Regression
No
Inverted value of Screen.orientation on iPad Air w/iOS 9.0.2
Inverted value of Screen.orientation on iPad Air w/iOS 9.0.2
1. What happened
When running on an iPad Air or other iPad that supports multitasking (even when multitasking is not being used) we observe that the value of Screen.orientaton becomes inverted. This is being seen on 5.2.1f1 and 5.2.1p1. It is not observed on 5.1.3f1. The iPad needs to be on iOS 9 (we are using 9.0.2 but I believe earlier versions of iOS 9 are also affected). I am using Xcode 7.0.1.
2. How we can reproduce it using the example you attached
Build and run the attached example ensuring all four orientations are selected. Start the app with the iPad held in portrait mode. The label in the centre of the screen will say "Orientation: Portrait". This label is simply displaying the value of Screen.orientation. Now rotate the iPad 90 degrees counterclockwise. The text wil change to say "Orientation: LandscapeLeft". OK so far. Now rotate the iPad back to portrait. The text will now say "Orientation: PortraitUpsideDown". From now on, whichever orientation you turn the iPad to, the text will show the inverse position, 180 degrees out.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- After converting a Built-in project to URP render texture related errors are spammed that can lead to Game view being rendered on top of Scene view
- UI Builder slider value lags and stutters when sliding/modifying certain property values
- "Reset UI Builder Layout" functionality inconsistently changes Canva Size when "Match Game View" is enabled/disabled
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
Add comment