Search Issue Tracker
Fixed in 5.4.1
Votes
1
Found in
5.3.5f1
Issue ID
800548
Regression
Yes
[API update]Compiler errors remain even when the obsolete scripts are deleted all together
Steps to reproduce:
1. Download and open attached project ("w.zip").
2. Download and open attached scripts ("script_testes.7z").
3. Select both of these scripts, drag and drop them to the project's "Assets" folder.
4. "API Update Required" window appears. Click "No Thanks".
5. Notice that the "Console" window outputs several compiler errors.
6. In the "Assets" folder select both of these scripts and delete them.
7. Notice that two error messages remain in the "Console" window:
"Assets/Camera_teste.js(12,9): BCE0144: 'UnityEngine.Component.camera' is obsolete. Property camera has been deprecated. Use GetComponent<Camera>() instead. (UnityUpgradable)
Assets/Camera_teste.js(8,1): BCE0144: 'UnityEngine.Component.camera' is obsolete. Property camera has been deprecated. Use GetComponent<Camera>() instead. (UnityUpgradable)"
Expected result:
Compiler errors should disappear automatically when all the obsolete scripts are deleted from the "Assets" folder.
(These compiler errors does not prevent user from entering the play mode. However, entering the play mode does not solve the issue).
Workarounds:
1. Restart the Editor or re-import all the assets.
2. Delete all the obsolete scripts one-by-one.
Reproduced with:
5.3.4f1, 5.3.5f1, 5.3.5p1, 5.4.0b18.
Cannot reproduce with:
5.1.0f3, 5.2.4f1.
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