How to reproduce:
1. Open the “RotationReproProject.zip“ project
2. Open the “SampleScene“
3. Make sure that the “AutorotationManger“ GameObject is disabled
4. Navigate to the “Edit > Player Settings > Android > Resolution and Presentation“ window
5. Toggle on “Landscape Right“ and “Landscape Left“ properties (The “Portrait“ and “Portrait Upside Down“ must be untoggled)
6. Build for Android
7. Install the app on a Fold device
8. Run the app on a folded device
9. While the device is in the Landscape position unfold it
Expected result: The application fills out the whole Viewport of the unfolded device
Actual result: The application does not fill out the whole Viewport of the unfolded device
Reproducible with: 2022.3.59f1, 6000.0.41f1, 6000.1.0b9, 6000.2.0a6
Reproducible environment: macOS 15.3.1 (M4 Max), Windows 10 (Reporters)
Not reproducible environment: No other environment tested
Reproducible with these devices:
VLNQA00628, Google Pixel 9 Pro Fold (Pixel 9 Pro Fold), Android 14, CPU: Google Tensor G4 (GS401), GPU: Mali-G715
Workaround:
1. In the “Edit > Player Settings > Android > Resolution and Presentation“ window enable all of the rotation properties (“Landscape Right“, “Landscape Left“, “Portrait“, “Portrait Upside Down“)
2. Create a new MonoBehaviour script and write this code snippet in the “Start()/Awake()“ method:
3. Attach the script to a GameObject in the “SampleScene“
Note: Only disabling all of the Allowed Orientations for Auto Rotation using the “Screen” API, and then enabling the Landscape ones will work as a workaround. If you just disable the Portrait ones using the “Screen” API issue will still reproduce