Search Issue Tracker
Won't Fix
Fixed in 2018.2.X, 2018.3.X
Votes
0
Found in
2017.3.1p1
2018.4.8f1
2019.2.1f1
2019.3.0a6
2020.1.0a1
Issue ID
1013176
Regression
No
[Android] Screen.width and Screen.height don't update at the same time as Screen.orientation
Steps to reproduce:
1. Open attached project "AndroidOrientationSwitch.zip"
2. Build for device and run
3. When you change orientation of the phone, the screen width and height are not updated right away
Expected: Width and Height should reflect the information that Orientation does (If in portrait, width should be smaller, height bigger and vice versa in Landscape)
Actual: For a frame or few the Width and Height still return values under the old Orientation
Reproduced on: 2018.1.0b11, 2017.3.2f1, 2017.2.2p1, 2017.1.3p2
DEVICES UNDER TEST:
Samsung SM G928F*, OS:7.0, CPU:arm64-v8a, GPU:Mali-T760, Build:samsung/zenltexx/zenlte:7.0/NRD90M/G928FXXS3CQL2:user/release-keys
Motorola XT1021*, OS:4.4.4, CPU:armeabi-v7a, GPU:Adreno (TM) 305, Build:motorola/condor_retgb/condor_umts:4.4.4/KXC21.5-40/46:user/release-keys
Lge LG D855 (G3)*, OS:5.0, CPU:armeabi-v7a, GPU:Adreno (TM) 330, Build:lge/g3_global_com/g3:5.0/LRX21R.A1445306351/1445306351:user/release-keys
Notes: Not reproduced on iOS (iPad Pro 10.5" iOS 10.3.3)
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
- WebGL build dependencies are not refreshed until the Editor is restarted
- “Audio Random Container” allows adding unlimited number in “Audio Clips” numeric field, causing Editor to freeze
- In Deferred rendering path, mixed lights don't render when enabling "Use Rendering Layers" in the Decal renderer feature
- [Windows] Special characters in file names are sorted to the end of the alphabet in the Project window
- Information box icons are not contained within the information box bounds in Render Pipeline Converter window
Resolution Note (2020.1.X):
Won't fix: Due to asynchronous nature of the orientation changes and graphics window recreation duration, it's difficult to sync the update without affecting/regressing other functionality.