File is unable to be opened when saving a model as a prefab that contains a script

I got a little concerned when I encountered this bug thinking that my project would be corrupted, but it appears to work again when deleting the prefab manually from the folder.

The bug happens regardless of what type of script you use and also regardless of where you place the script within the hierarchy of the model.

1 Like