Search Issue Tracker
By Design
Votes
0
Found in
2018.1.0b11
Issue ID
1016499
Regression
No
[Mobile] Rotation-related flicker using Screen.orientation
Reproduction steps:
1. Open the attached project.
2. Build it to a device (iOS preferably).
3. Swap between 'Portrait' and 'PortraitUpsideDown' orientation up to 20 times.
Actual behavior:
- 5-50% of the time screen redraws itself in an opposite orientation for a few frames when screen is rotated. It looks like a flicker.
Expected behavior:
- Constant behavior on every screen rotation.
Reproduced with:
- 2017.2.2p2, 2017.3.2f1, 2018.1.0b12, 2018.2.0a6
- iPhone 7 iOS 11.0.2, iPod Touch 6th gen iOS 10.2.1
Note:
- It may be an iOS only issue. It reproduces 100% of the time on Android devices, but instead of flicker, you can see a brief shadow of a text in the yellow area of the screen. It is more difficult to notice this issue using Android as rotation animation is played when a device is rotated.
(Google Pixel 2*, OS:8.0.0, CPU:arm64-v8a, GPU:Adreno (TM) 540, Build:google/walleye/walleye:8.0.0/OPD1.170816.010/4311506:user/release-keys)
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
By design: user's script rotates GUI and sets new screen orientation at the same time. GUI is flipped immediately, while screen orientation change takes effect on next frame.