[Bug] Camera feed is upside down
Unity bug report case number 1273490
Describe the bug The camera is upside down when switching orientation from landscape left to landscape right directly or from portrait to portrait upside down.
To Reproduce Steps to reproduce the behavior:
- Create an AR project or start from the ARFoundation sample project
- Set the default orientation to Portrait in Project Settings
- Add the following code in Awake() or Start() of any script
Screen.orientation = ScreenOrientation.AutoRotation;
Screen.autorotateToLandscapeLeft = true;
Screen.autorotateToLandscapeRight = true;
Screen.autorotateToPortraitUpsideDown = true;
- Build and launch the app on the device
- Switch orientation from landscape left to landscape right directly or from portrait to portrait upside down quickly.
- See that the camera is upside down
Expected behavior The camera should update it's orientation like the rest of the app (the UI does)
Actual behavior The camera is upside down when switching orientation from landscape left to landscape right directly or from portrait to portrait upside down.
Smartphone (please complete the following information):
- Device: Xiaomi Mi mix 2S, Samsung Galaxy Tab S4
- OS: Android 10, Android 8.1.0
- Unity version 2019.4.8f1
- ARFoundation version 4.1.0 preview-6
- ARCore XR Plugin version 4.1.0 preview-6
This is a bug in non-AR code as we have reproduced this without AR Foundation and associated packages. We have opened a bug internally for the mobile team to investigate.
You can track the issue here.
Thank you for the update