Search Issue Tracker

By Design

Votes

0

Found in

2021.3.16f1

2022.2.1f1

2023.1.0a24

2023.2.0a1

Issue ID

UUM-22476

Regression

No

[iOS] Forcing orientations at runtime doesn't work on iPad devices when "Requires Fullscreen" is disabled

-

Steps to reproduce:

  1. Open attached project
  2. Switch to iOS
  3. Open Player Settings/Resolution and Presentation tab
  4. Disable Requires Fullscreen setting and make sure Autorotation is enabled with all 4 orientations allowed
  5. Build and run on an iPad device
  6. Try to force orientations using one of the buttons at the top-left ({}Portrait{}, {}Portrait Upside Down{}, Landscape Left or Landscape Right buttons)

Expected behaviour: The app should start forced in Portrait orientation and forcing other orientations using the buttons should result in app rotating to said orientations.
Actual behaviour: The app starts with all 4 orientations allowed and ignores all of the attempts to force one specific orientation.

Reproduced with: 2021.3.15f1, 2022.2.2f1, 2023.1.0a25

Tested with:
iPad Pro M1, iOS 16.0 - Reproduced
iPad Mini 6, iOS 15.0 - Reproduced
iPhone 14 Pro Max, iOS 16.0 - Not reproduced

  1. Resolution Note:

    Multitasking apps must support all orientations. You can opt out of multitasking by enabling Requires full screen on your iOS target or by not declaring support for all possible orientations within the Info.plist file.

    It is written in here: https://developer.apple.com/documentation/uikit/uiviewcontroller/1621435-supportedinterfaceorientations?language=objc

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.