Help! My script just deleted itself!

Hi Comm-unity,

It seems I’m in a bit of a pickle. I was working on a script last night, and my computer froze. I shut down my computer, rebooted it, and thought nothing of it. However this morning, when I attempted to open my project, it said that there were inconsistencies in the asset database, and it required a report. When I did that, I went to open my script, and it was just blank. I’m using Monodevelop. Any help would be much appreciated.

  • Tiger273

Uhh, sounds like a scenario for having backups setup - like version control - would have helped a lot right now :slight_smile:

But anyway, check the recycle bin, sometimes deleted stuff (when you manually delete it) ends up there, but other than that I’m not sure what to try.

You could check if Monodevelop kept some temporary file open somewhere. Also this might be worth a try if you still have a build somewhere: recover script instead of autosave? - Questions & Answers - Unity Discussions

Regardless of that, consider the 3 “B” of data processing: Backup, Backup and Backup. :wink: If you keep working on your project long enough, it is not the question IF you will lose it, only when that will happen.

1 Like