I accidentally deleted prefab

Hello guys, I want to share a problem. Before I share, I want to tell you that I just started game development, so I don’t know very well where and what to do, I found myself the need to write and ask for help from him.

Error: I accidentally deleted the prefab, whose name is now a character, then I think I messed up even more when I was trying to fix it. When I threw the prefab into the scene again, I didn’t get a reaction. Neither the character walks nor can do other works that I have added. What should I do? so it stayed

i am a newbie too, but did you try just spamming CTRL+Z? that is the undo command, and it works almost universally.

Think outside the box dude, I mean outside unity!
Did you know you can recover most things off disk…even if deleted, try the recycle bin… or ccleaner (there are many recover utils) , you would be surprised what is recoverable. Unless you have overwritten the “deleted” file with other files, then it might be too late.

8 Likes

I didn’t know you could do that! Thank you that was a life saver!

3 Likes

Source Code Version Control

For daily work, you should be using a Version Control System (VCS). This is like a time machine, saving a copy of your file between each set of changes you make, letting you recover an older version of the file before you made changes you don’t like, or recover the most recently saved version if you delete it. Every time you get to a stopping place where you added some new feature, check in with the VCS, so it will keep the latest changes for you.

There are many free and paid tools which offer VCS services, such as GitHub or Unity’s own PlasticSCM. Just be careful not to share third-party asset files into a public cloud account where you’re liable for unlicensed copies.

Regular Full Backups

Every time you reach a big milestone in your work, you should be making a full backup of your project to an external drive you keep in a safe place. This is for disaster recovery, in case you’re locked out of cloud system accounts or your computer explodes. A simple ZIP file of your whole project folder is fine. If you absolutely must shrink the size of your backups, you can skip adding the project’s Library sub-folder to your backups; it will take a little longer to restore but saves more than half of the data storage.

A full backup is not a convenient daily work VCS solution, and a VCS is not a full backup disaster recovery solution. You should do both, for Unity or any other computer work, like your college homework, your digital photo albums, or the documents for a multi-million dollar business.

Yeah, a delete does not actually delete, weird right, anyway good for these situations, terrible if you want to get rid of evidence, ha ha, those HDD sectors will remember lots.