Ok… so I regularly back up my Assets folder as I’m working on a lab computer and anyone can mess with my files. So, as per the usual day, when I’m done working for the evening I copy all my Assets (including my scene files) to my portable hard drive and go home.
The next day I come in and copy all my files from the portable hard drive to my assets folder on the machine, fire up unity, and everything’s gone. Well, technically, everything’s still there (the assets are still there) but Unity has completely disconnected everything to where there’s no materials, renderers, rigidbodies, scripts or anything else attached to my gameobjects. Even all of my layers have been erased and reset to the standards.
I have no idea what happened, I used the same procedure I have every day for a year working on this thing and this has never happened before… if anyone knows anything about this kind of problem, or can help me out, please, please please let me know.
I am not 100% positive on all the behind the scenes stuff but when backing up you absolutely want to carry the other folders (library and temp) that is where a “bunch” of other information is stored regarding scripts and their attachments, etc.
I am not sure if there is anything that can help you with the current situation.
I see… I honestly can’t remember if I just backed up the assets or the whole project folder… anyway, I have some old backups that I’ve resorted to… I guess I’ll just have to make due.
You say you backed up your assets folder. Thing is it is critical you back up the entire project folder. That is the Library folder and the Assets folder. Unity keeps a lot of meta data around, so that eg. you can have your .mb file in there while unity keeps a cached optimized imported version around. Same with all the settings in the various managers and of course in order to maintain references to other assets from your scenes. So if you eg. delete the library folder, you will lose the references from scenes to objects inside of it.
So don’t backup the assets folder, backup the folder above it.