Search Issue Tracker
Duplicate
Votes
0
Found in
2017.1.0f1
Issue ID
926150
Regression
Yes
Attaching a script to an object and then deleting it causes the script component to disappear
To reproduce:
1. Open attached Unity project "Betatests.zip"
2. Attach "deletethis" script to a GameObject
3. Delete "deletethis" script from the Assets folder
4. Go into Play mode
5. Observe the GameObject to which the "deletethis" script was applied
Expected result: The Script component should still be present in the Inspector window and show "missing script" (see attached gif "Expected.gif")
Actual result: The whole script component is gone but the console keeps on prompting "missing monobehaviour script" each time when entering the Play Mode (see attached gif "Actual.gif")
Regression first introduced in: 2017.1.0b6
Reproduced on: 2017.1.0b6, 2017.2.0b1
Not reproduced on: 5.6.2f1, 2017.1.0b5
Add comment
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
This is a duplicate of issue #925372