Search Issue Tracker

Not Reproducible

Votes

0

Found in

5.3.4p4

Issue ID

789889

Regression

No

[iOS] Using Unity Remote 4 on iOS with 'Auto Rotation' and only one of landscape orientations allowed, makes the app rotate once

iOS

-

Steps to reproduce:

1. Open attached project
2. Notice that 'Default Orientation' is set to 'Auto Rotation' with only 'LandscapeLeft' as allowed orientation in Player settings
3. Plug-in a device with Unity Remote 4 installed
4. Connect this device to Editor (Edit/Project Settings/Editor/Device)
5. Open Unity Remote 4
6. While holding the device in LandscapeLeft, play 'Test' scene in editor
7. Notice everything looks good so far
8. Rotate the device to LandscapeRight

Expected result: Remote application should stay in LandscapeLeft orientation, as that is the only one allowed.

Actual result: The app on device rotates to LandscapeRight, and if you try to rotate it back to LandscapeLeft, it will not work - remote app stays in LandscapeRight.

Notes:
Same happens if you repeat steps with LandscapeRight as a default orientation and rotate it to Left once it's launched.
Portrait and PortraitUpsideDown do not exhibit this issue.
When deployed to device, the application works as expected.

Workaround: Instead of setting 'Auto Rotation' with only 'LandscapeLeft' as allowed orientation, simply change the 'Default Orientation' setting to 'LandscapeLeft' - then everything works as expected.

Comments (1)

  1. UnSpotibleShadow

    Jul 12, 2016 07:57

    Noticed that xCode returns the inverted of what you have selected in Build Settings, which means: If you select LandscapeLeft in Unity and build to xCode, xCode will make this LandscapeRight. Other way around applies the same

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.