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
- Red spots appear when Blending Lighting Scenarios using Adaptive Probe Volumes
- [Windows] About Unity Window needs to be opened twice to adapt to resolution
- NullReferenceException and temporary graph corruption after entering playmode if output node connection was changed
- Sprite Renderer with Animation does not reflect Sprite changes in the Scene when switching Mask Interaction
- User is redirected to a non-existing online documentation link when clicking on "?" help button inside Inspector window while Animator Override Controller is selected
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.