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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment