Search Issue Tracker

Fixed in 2021.2.X

Planned for 2019.4.X, 2020.3.X, 2021.1.X

Votes

0

Found in

2018.4

2019.4

2019.4.1f1

2020.2

2021.1

2021.2

Issue ID

1307839

Regression

No

[iOS] verticalOrientation deprecation warning is missing information about ScreenOrientation.PortraitUpsideDown

--

-

Reproduction steps:
1. Open project attached in "New Unity Project (14).zip"
2. Open Test.cs script
3. Hower the mouse above UnityEngine.IphoneSettings.verticalOrientation
4. Inspect the warning

Expected result: UnityEngine.IphoneSettings.verticalOrientation is obsolete: verticalOrientation property is deprecated. Please use Screen.orientation == ScreenOrientation.Portrait || Screen.orientation == ScreenOrientation.PortraitUpsideDown to check if the device is in vertical orientation (or something along those lines to indicate that Screen.orientation == ScreenOrientation.Portait is not the same as verticalOrientation)
Actual result: UnityEngine.IphoneSettings.verticalOrientation is obsolete: verticalOrientation property is deprecated. Please use Screen.orientation == ScreenOrientation.Portrait instead

Reproducible with: 2018.4.32f1, 2019.4.21f1, 2020.2.6f1, 2021.1.0b8

  1. Response avatar

    Resolution Note (fix version 2021.2):

    Fixed in 2021.2.0a13.1792

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.