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

Scripting

-

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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.