Search Issue Tracker

Not Reproducible

Votes

0

Found in

2017.2.0b3

Issue ID

931925

Regression

Yes

Deleting a script corrupts prefab which had that script

Scene Management

-

To reproduce:
1.Create new project
2.Create a Cube in the hierarchy
3.When cube is selected i the inspector Add Component > New script
4.Drag the cube from hierarchy window to project view to create a prefab
5.Delete the created script
6.Select the prefab

Expected behavior: prefab is selected with no errors
Actual behavior: inspector window gets corrupted, console throws :
ArgumentNullException: Argument cannot be null.
GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced)
ArgumentNullException: Argument cannot be null.
errors non stop.

Reproduced on: 2017.2.0b3
Not reproduced on 5.6.2p4 2017.1.0f3 2017.2.0a1 2017.2.0b1
Regression introduced in: 2017.2.0b2

Workaround:
Drag the prefab from project window to hierarchy, delete missing script components and press apply

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.