I’m not sure what would be the right section for this, so I’m just going to hope this is right.
Anyway, my problem is that when experimenting with something irrelevant to the subject, I somehow managed to convert my Animations folder into a useless .META file. Quitting the project without saving did nothing considering that this didn’t affect the scene itself and all that, I can’t restore the project to an earlier version and I never made a backup.
I suspect that this folder and all its animations is gone forever, but considering that it represents hours of work I doubt I could replicate with the accuracy I would need to make it work again, I’m still asking if anyone knows a way to fix this. If there’s some hidden backup somewhere or if there’s a way to convert the file back to a folder with no loss of data, etc.
You did not converted a folder to a .meta file (folder /=/ file).
Every files and folder have a correspond .meta file used to record connections between files or a file setting inside Unity.
So your folder seems pretty much gone yes…
I advice you to use source control, there is a lot of solution (SVN, Perforce, Git…).
The concept of this is to send every time you want your project onto a server that keep track of the change, this mean you can go back in time when you want to retrieve an older version of a file, even deleted files (locally or on the server).
I see… I guess I’ll use something like that for the future then. Ugh, it still really stings to lose so much work… This might force me to discontinue the entire project.
Thanks anyway, though.
No, I checked my recycle bin and nothing was there. The problem is that the folder wasn’t deleted, I wish it was, but instead it was converted into a useless file, thus being beyond redemption as far as I can tell.
There was no renaming involved. I was trying to add a file to the folder through a script, specifically an Avatar (I’m still looking for a workaround to be able to mobilize the Avatar Mask without having to rig my character in a program like Maya, and this was such an attempt), however since I didn’t know what kind of file an Avatar is, I foolishly left the .(something) part blank, making the script think I wanted to create a .META file (Apparently its substitute for .(nothing)) in place of my folder, overwriting the folder. That is at least what happened as far as I can tell. This stuff it alien territory to me. Hence why I screwed up so badly.
A folder is not a file… you can’t “overwrite a folder” neither apply an extension to it.
The concept of folders is just to sort files but when a file is written onto your HDD memory, moving a file from a folder to another will not move the file’s content memory position.
Windows API consider folders and files as different kind of stuff, I really don’t think naming a folder “myfolder.meta” will confuse Unity, it will juste create a “myfolder.meta.meta” file, that’s all.
There is two options to me:
You somehow flag your folder to be hided by windows, that’s why the .meta is still there (Unity delete automatically .meta files from inexistant files/folders). If so, go to your folders options and enable “display hidden folders & files”.
Or you deleted your folder without knowing it but as I said, Unity should remove the associated .meta file automatically if the folder is not there anymore.
Okay, so… Turns out the folder didn’t turn into a .META, it only HAS a .META. The actual file is just called… “File”. Although that doesn’t improve my situation from what I can see. It only makes more sense since not specifying what kind of file it is shouldn’t make it a .META, but a… well, an undefined file, I’m guessing is what it is.