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
- 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