Search Issue Tracker
Fixed in 2022.1.X
Votes
0
Found in
2020.3
2020.3.19f1
Issue ID
1400352
Regression
No
[iOS] Second ViewController renders beneath Unity ViewController if Portrait orientation is disabled in Player Settings
How to reproduce:
1. Open and build the attached project ("1133418 - UIHeirarchy Issue.zip", ensure Portrait and Portrait Upside Down in Player Settings are unchecked)
2. In the resulting Xcode project, add the attached files "SecondViewController.m" and "SecondViewController.h"
3. In the resulting Xcode project, replace "UnityAppController+ViewHandling.mm" with the attached version of this file
4. Deploy to device and observe
Expected result: Second view controller renders over Unity view (Portrait orientation should not affect it)
Actual result: Second view controller renders below Unity view
Reproducible with: 2020.3.19f1
Reproducible on:
iPhone 8 Plus (iOS 14.4.2)
iPhone 13 mini (iOS 15)
Note:
- Could not test on latest 2019.4, 2020.3 or 2021.2, 2022.1, 2022.2 versions due to differences in generated classes in Xcode ("undeclared identifiers for ‘_viewControllerForOrientation’" and other errors)
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
- [Android][Mobile Notifications] The Player freezes or crashes when calling "AndroidNotificationCenter.GetNotificationChannel" every frame
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a14