Need to recompile my project :( Please help!

I recently deleted my project files thinking it was an old version and managed to recover it through EaseUS, When i got the files back they wont open in unity and i got all these other folders. Is there a way to recompile these files or did i lose 10 hours of work to my own sleepiness?

Image of recovered files : Imgur: The magic of the Internet

Well, i doubt that you can recover your project from those rescued folders. However if everything important is still there you have to:

  • Create a new “game” folder.
  • Add an “Assets” folder and a “Library” folder to that game folder
  • copy “ScriptAssemblies” and “ShaderCache” to the library folder
  • create a “metadata” folder within the “Library” folder
  • copy all folders with a 2 digit hexadicimal number into the “metadata” folder
  • “AnnotationManager” also belongs to the “Libaray” folder
  • the “obj” folder should be in the “game” folder
  • All other folders except “Build1_Data” should go into your “Assets” folder

Note: The library folder is missing a lot of other important files, maybe they are not visible in your screenshot, but without those i doubt Unity can read anything from the assetdatabase. A very important file is assetDatabase3. However if your actual assets have meta fils alongside it might be possible that Unity can recreate the library.

Furthermore you’re missing the ProjectSettings folder. It’s not a show stopper, but it contains all settings of your project (Tags, layers, audio settings, build settings, graphics settings, input manager settings, physics settings, time settings, …) So all those settings will be either back to default or simply wrong. If they are messed up you might simply want to create a new project and copy the folder over.

ps: If Unity can’t read the Library folder you might just delete it and hope that the assets files all have their metadata files.

Just to mention it once more: Create backups ^^.

All these ab, cd, ef etc. folders are the ones that are normally present in the Library folder of Unity project which can normally be safely deleted. But it seems like what you’re showing on the picture is a flattened version of the original Unity’s project folder tree. For instance the ScriptAssemblies is a level higher than the two-lettered folders, but yet also in the Library. Is there any way you can recover the depths?