Search Issue Tracker

Fixed in 2022.2.X

Votes

0

Found in

2022.2.0a12

Issue ID

1423317

Regression

Yes

API updater fails to update all instances of obsolete types after package import

Scripting

-

Steps to reproduce:
1. Create a new Unity project
2. Import Advertisement package (com.unity.ads 4.1.0)
3. Import any other package

Expected result - Ads package compiles successfully, no errors appear, all instances of obsolete ScreenOrientation.Landscape are replaced with ScreenOrientation.LandscapeLeft
Actual result - obsolete type ScreenOrientation.Landscape reappears in ads package scripts after package import and API Updater fails to update it, ads package compilation fails with error:
Library/PackageCache/com.unity.ads@4.1.0/Runtime/Advertisement/Platform/Editor/Placeholder.cs(83,47): error CS0619: 'ScreenOrientation.Landscape' is obsolete: 'Use LandscapeLeft instead (UnityUpgradable) -> LandscapeLeft'

Reproduced with: 2022.2.0a12
Didn't reproduce with: 2022.2.0a11, 2022.1.0f1, 2021.3.1f1, 2020.3.34f1, 2019.4.38f1

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.