Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
9
Found in
5.4.2f2
Issue ID
959897
Regression
No
[Android] ScreenOrientation.AutoRotation does not respect rotation-locking on Android
Reproduction steps:
1. Open "rotateTestAndroid" project
2. Launch test scene
3. Make sure that Player Setting -> Settings for Android -> Default Orientation is "Auto Rotation"
4. Make sure that Allowed Orientations for Auto Rotation are all ticked
5. Build and install for android
6. Lock rotation in android internal settings and rotate Android phone
Expected behaviour: Game view shouldn't rotate
Actual behaviour: Game view in android rotates
Note: only reproducible on Android, iOS works as expected.
Reproduced with: 5.4.2f2, 5.5.4p2, 5.6.4p1, 2017.1.1p1, 2017.3.0b2
Related issue: 649074
Devices under test:
Google Nexus 5X, OS:8.0.0, CPU:arm64-v8a, GPU:Adreno (TM) 418, Build:google/bullhead/bullhead:7.1.1/N4F26I/3532671:user/release-keys
Google Nexus 7, OS:6.0.1, CPU:armeabi-v7a, GPU:Adreno (TM) 320, Build:google/razor/flo:6.0.1/MMB29K/2419427:user/release-keys
Xiaomi MI PAD, OS:4.4.4, CPU:armeabi-v7a, GPU:NVIDIA Tegra, Build:Xiaomi/mocha/mocha:4.4.4/KTU84P/V8.2.2.0.KXFCNDL:user/release-keys
Sony D6503, OS:6.0.1, CPU:armeabi-v7a, GPU:Adreno (TM) 330, Build:Sony/D6503/D6503:6.0.1/23.5.A.1.291/2769308465:user/release-keys
-
jdonline
Oct 27, 2020 17:58
I'm using Unity as a Library, embedded in an Android app. I've been tearing my hair out trying to figure out what was going on with rotation lock not working in my app. I finally figured out that, to my surprise, when embedding a small Unity platform view within my app, it hijacks the rotation behaviour of my entire app. This seems really bizarre and unexpected. I have no idea how to solve this, and it's really annoying both me and my users!
-
Firemaw
Apr 21, 2019 03:56
I have had several user complaints about my game because of this bug, that I am unable to resolve
-
dustinkerstein
Feb 04, 2019 16:23
Any updates on this issue? Currently still reproducible on 2017.4.18f1 and Android.
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
- Character spacing value is not applied when using a specific font asset
- [Android][IL2CPP] Player crashes on __memcpy_aarch64_simd+276 when invoking native code via a plugin on some ARM64 Android devices
- [Android]Resources fail to load when the AAB build contains a large Addressables Bundle
- Unity is loading internal version of SharpZipLib instead of local version
- The Context Menu items are ordered incorrectly
Resolution Note:
We looked into the issue and made a draft fix, but before we submit it as a PR for review, it feels the increase in code complexity may not be worth the benefit the fix brings. Maybe we can review if we can invest in fixing this at a later date.