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
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Add comment