Last night I was working on my game and a bit after saving my computer crashed. When I launched it again the Editor crashed, after reinstalling unity, deleting the library file I managed to launch the project but in the default scene, but when I try to open up the scene I was working on it would crash. Been searching forums but nothing helps and most of them weren’t answered. How can I fix this?
But if something is corrupted you would need to restore or delete the corrupted data from your backups.
If you have no backups you could proceed by making a new project and hand-copying items to it one at a time and making sure they don’t cause any issues, eg, make sure they are not corrupted by testing as you go.
I’m sorry you’ve had this issue. Please consider using proper industrial-grade enterprise-qualified source control in order to guard and protect your hard-earned work.
Personally I use git (completely outside of Unity) because it is free and there are tons of tutorials out there to help you set it up as well as free places to host your repo (BitBucket, Github, Gitlab, etc.).
You can also push git repositories to other drives: thumb drives, USB drives, network drives, etc., effectively putting a complete copy of the repository there.
As far as configuring Unity to play nice with git, keep this in mind:
Here’s how I use git in one of my games, Jetpack Kurt:
Using fine-grained source control as you work to refine your engineering:
Share/Sharing source code between projects:
Setting up an appropriate .gitignore file for Unity3D:
Generally setting Unity up (includes above .gitignore concepts):
It is only simple economics that you must expend as much effort into backing it up as you feel the work is worth in the first place.
“Use source control or you will be really sad sooner or later.” - StarManta on the Unity3D forum boards
I tried turning the scene into a txt file and editing it, kind of worked when I deleted a bunch of lines but my hierarchy was messed up and assets were missing. I believe it might be caused by a specific asset(s).
I can upload the scene file if that helps.
Also how could I hand-copy the assets? I can’t really open the scene without crashing.
The scene will be a single file. If it is corrupted it would not be useful to copy it.
Everything you made in your Unity project is stored in the Assets/ directory.
Keep in mind I am NOT telling you precisely how to proceed. I am telling steps you can take to try and remedy your failure to make backups. These steps may or may not be successful. It’s up to you to be thorough as you investigate the damage to your computer.