- Home /
Unity crashed and corrupted my .cs file,Electricity went down and corupted a .cs file
So i was working in unity and i had a script open that i was working in, and my electricity went down and pc shutted down.
After i opened the pc again, when i try to open the .cs file it is opening a empty notepad and the visual studio on background with nothing opened. (screenshot here: https://i.postimg.cc/RV44nmH8/poza.png )
Here is my file, can i recover the code?: (i used visual studio 2019) https://wetransfer.com/downloads/54e5cd4bfcfa8e7963c4d4f0a386115220200807112751/6abd51,So i was working in unity and i had a script open that i was working in, and my electricity went down and pc shutted down.
After i opened the pc again, when i try to open the .cs file it is opening a empty notepad and the visual studio on background with nothing opened. (screenshot here: https://i.postimg.cc/RV44nmH8/poza.png )
Here is my file, can i recover the code?: (i used visual studio 2019) https://wetransfer.com/downloads/54e5cd4bfcfa8e7963c4d4f0a386115220200807112751/6abd51
Answer by FlorentAlbyon · Aug 07, 2020 at 02:14 PM
Unfortunatly i don't think there's much you can do. I suggest you take this as a life lesson: as a developper you should always have a backup. Don't worry, i don't think of a single dev that didn't learn this the hard way. Take the opportunity to learn how to use git (or another version control system). Github is free :)