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
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SerializedPropertyChangeEvent is invoked when initially binding PropertyFields in custom Editor
- UI Panel is not visible when HDR and STP filter are enabled
- Crash on GfxDeviceD3D11Base::DrawBuffersIndirect when opening a specific project
- OnTriggerExit2D is called in Play mode when undoing component adding
- Builds fail with "Execution failed for task ':launcher:checkReleaseDuplicateClasses'" error when the newer version of the In-App Purchasing package is installed on a specific project
Add comment