Making a backup of the sripts
Hi.
Every time I start to use Unity I'll make a backup of my scripts from the assets folder, in case I mess something up. Today was the first time I actually had to use the backup scripts (just copied the scripts from the backup folder and pasted them over the ones in the assets folder). Now I get this following error: "No MonoBehaviour scripts in the file, or their names do not match the file name".
I have 15 scripts in this project and I prefer not to write them all again. So is there a way to reroute the backup files so that they would work or something? Thanks!
Answer by Strangerweather · Jan 03, 2016 at 10:09 PM
You need to save the meta files as well. Good luck!
Answer by jchart7 · Jul 01, 2019 at 02:38 PM
Create Fresh new scripts ("Don't forgot to name them properly") and copy paste into them.
Answer by cdauphin · Jul 01, 2019 at 02:45 PM
Hello, you should use a versioning tool like Git.
It's really useful to avoid losing files and to works from multiple computers.
Your answer
![](https://koobas.hobune.stream/wayback/20220612054819im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Recover lost scene... 0 Answers
"Mesh missing" when opening backed up project 0 Answers
Why is my backup not working? 0 Answers
New script is created as a backup 0 Answers
Restored Backup, CS0101 Error 0 Answers