Search Issue Tracker
Fixed in 2021.1.X
Duplicate in 2019.4.X
Votes
0
Found in
2019.4
2019.4.6f1
2021.1
Issue ID
1282960
Regression
No
[iOS] [UaaL] Screen.orientation method reports that screen is upside down when rotating from landscape right to portrait mode
How to reproduce:
1. Open the attached 'Unity UAAL ScreenOrientation Bug Report.zip' project
2. Switch Platform to iOS in Build Settings
3. Build for iOS and open the Xcode project
4. Generate a new Xcode workspace
5. Add NativeiOSApp and built Xcode project to the created workspace
6. Mark Unity-iPhone / Libraries / Plugins / iOS / NativeCallProxy.h as public in Target Membership section of the right sidebar
7. Change Target Membership for Unity-iPhone/Data folder to UnityFramework
8. Select NativeiOSApp scheme and run it
9. In the launched app click the 'Init' button
10. Hold the device in landscape right mode (you can modes in the debugger)
11. Rotate the device in portrait mode
12. Observe the debugger
Expected result: Screen.orientation method returns portrait
Actual result: Screen.orientation method returns portrait upside down
Reproducible with:
iPhone 8+ (iOS 12.0)
iPhone XR (iOS 13.4.1)
iPad 9.7’ 6th gen (iOS 14.2)
Reproducible with: 2019.4.13f1, 2020.1.9f1, 2020.2.0b7, 2021.1.0a1
Could not test with: 2018.4.29f1 UAAL is not supported
Notes:
- Detailed steps with screenshots of how to reproduce the issue is here: https://forum.unity.com/threads/integration-unity-as-a-library-in-native-ios-app.685219/
- Attached screenshot of the issue
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Resolution Note (fix version 2021.1):
Fixed in 2021.1.0a2