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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment