Search Issue Tracker

Fixed in 2021.2.X

Fixed in 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. Resolution Note (fix version 2021.2):

    Fixed in 2021.2.0a13.1792

  2. Resolution Note (fix version 2021.1):

    Fixed in 2021.1.6f1.2425

  3. Resolution Note (fix version 2020.3):

    Fixed in 2020.3.8f1.417

  4. Resolution Note (fix version 2019.4):

    Fixed in 2019.4.26f1 (e0392c6b2363)

Add comment

Log in to post comment