Here’s what happened.
I had a previous version of Windows and my PC crashed.
So I bought a new PC, installed Windows 10 and the latest Unity.
I have a 4To NAS where I copied the whole content of my old Windows, it was:
**C:\Users\Olivier\Documents\Unity**
to my NAS, into that folder
Z:\Olivier\Windows - new install\Windows.old\Users\Olivier\Documents\Unity
I made sure that everything was there: I saw many files, likes all my prefabs with their clear names (“Bateau2cases.cs, and so on”), I couldn’t be wrong, I saw them.
From my brand new PC / Windows 10 / Unity ($2000 = this is not a small PC), I tried to open that project and here’s what Unity told me. Here’s just some of the lines:
A meta data file (.meta) exists but its asset ‘Assets/Code/Bateau.cs’ can’t be found. When moving or deleting files outside of Unity, please ensure that the corresponding .meta file is moved or deleted along with it.
That’s ok, but many lines later you can read:
Removing Assets/Code/Bateau.cs because the asset does not exist
AND THAT ASSET WAS EXISTING
Maybe Unity didn’t see it because it’s my NAS Under Linux ? If so:
- why can I read everything from my Windows 10 ?
- why did Unity manage to delete those files ?
This is just a burning shame.
And the big problem is that I’ve paid a formation from a guy, $300 / day, for 3 days. I’ll never see this guy anymore, and all my code is gone. I’ve lost $900 plus the work I did on my files.
NB: __I didn’t make a backup because I really didn’t think Unity could try do delete __other files than its own____.
I’ve never made in 25 years, a code that could delete a file that is not a part of the system I was writing. I dont understand how you could do such a work. At least ask the user if he does agree that you will try to delete those files. ASK THE USER FFS.
And on another side : if you know it’s risky to try to import a project why don’t you ask the user if he wants to make a backup before Unity tries to convert/import the project? A recursive copy of the folder named [project.bak]. Not hard is it? That would mean “this is a safe product to use”.
3241224–249172–Editor.log.7z (10.5 KB)