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
- Keywords on Material Variants aren't automatically saved when changed on original Material through Shader Graph
- Light Probes get baked when calling LightProbes.Tetrahedralize
- Shadows flicker and cause visual artifacts when modifying a GameObject's bounds using Swizzle (Y Mask) and Sine Time nodes
- [WebGL] Frame rate drops by 5-20 fps when moving cursor or touch input in the Player
- Light bleeds when using box shaped spotlight with specific Emission Range values
Add comment