Unity crash destroyed script
Hey guys I really need your help. I was coding on a script and coded something wrong. Then I ran Unity and unity crashed because it was generating an endless number by mistake. When unity crashed and my whole pc crashed I reopened the project and the file i was coding on is now empty (better said everything is replaced with spaces)
I don't know how to get the code back and it is really important.. please help me. I will attach the cs file: LocRotScale.cs (Corrupted)
Thank you guys!
The file only contains 0-bytes, there is nothing to recover. AFAI$$anonymous$$ Unity doesn't create automatic backups somewhere, so i'm afraid to say: I think the code is lost.
I know from experience that this is very frustrating and you'll probably think "It's impossible to rewrite everything." But it isn't. Just start typing, the memory will kick in and it will be easier than you expect.
Answer by unityBerserker · Sep 03, 2016 at 05:56 PM
Next time when Unity crash try this solution:
http://unityready.com/restore-scene-crashed-unity3d-instance/
Also I mention that in Menu File in Unity you have two options:
Save Scene - saves actual open scene
Save Project - save your project - same effect you will close Unity (but not when crash). I mention about Save Project because assets are save when we are saving our projects.