I was working in Unity 5 and writing a C# script with Notepad++, and everything was fine and dandy, until I tried saving. Notepad++ Crashed, and I didn't think much of it because Notepad++ saves your work even if you didn't save. When I re-launched Notepad++, my script was perfectly fine, but there was a pop-up that said "this program has been modified by another program, would you like to reload?". Usually this happens when unity changes your code to it's API, so I clicked "yes". When the new version loaded, there was nothing on the script, and when I pressed Ctrl + Z, nothing happened!
I tried reverting the script in many ways, and I can't re-write it because this script was around 2, 000 lines. I thought "maybe I can decompile a .dll from an earlier build!". I tried finding the script using dotPeek, but I am not sure which .dll to search in, and I am also not sure how to find the scripts in dotPeek! I am sure I can watch a dotPeek tutorial for the second part, but the real question is: Which .dll do I look in to find my script?
↧