Follow

Can I restore my unsaved scene after Unity crash?

Symptoms
  • Unity Editor crashed after pressing the Play button and all my changes are unsaved.
Cause
Unity saves your scene each time when you hit the Play button. It is not saved over the original scene file, instead it is saved in the project’s Temp directory.
 
Resolution
 
If you want to restore your scene file, you cannot re-launch Unity Editor after the crash. If you do, you will lose the scene file and all your progress with it!
 
If you want to restore your crashed scene, you have to go to your project’s directory (this is the folder that also contains the Assets directory) then enter the Temp/__Backupscenes directory. You will find the 0.backup file within. This is your saved scene file. 
 
Now all you have to do is to copy this file and replace your previous scene file with the copy. You will need to set the file extension to unity in order to make this file recognizable as Unity scene file.
 
Please remember to backup your project folder before making this kind of changes. If you make any mistake, you can easily go back and try again.
 
More Information
 
Please also see this Blog Post.
 
Was this article helpful?
4 out of 8 found this helpful
Have more questions? Submit a request

9 Comments

  • 5
    Avatar
    Casy Adjei

    Unity. I would be helpful for you to warn us aboutthat before we open our project and lose all of our work after making a level, game and other stuff the entire and afternoon. Gosh darn it. Now I still have empty materials and  sripts but no level text or geometry.

    Edited by Casy Adjei
  • 5
    Avatar
    David Bradbury

    Just ran into the same thing - You guys seriously have this functionality built in but don't warn the user? What project manager decided that was a good idea to pull?

  • 0
    Avatar
    Christian Dicker

    This just happened to me, and just wow...

  • 0
    Avatar
    ninoski 404

    It worked! I just restored about 2 hours of work that I was sure I lost!

    Also you really should tell users that this feature exists without them googling it...

  • 4
    Avatar
    Matt

    This is honestly the worst "after the fact" advice I have ever read.

  • 0
    Avatar
    Samet Serif

    i've had that situation. Unity crashed i wasn't surprised because it happens a lot on my machine, so i restarted unity as usual. but unlike the crashes before, this time the the whole scene was gone. while researching for a solution i figured out very quickly that i shouldn't have restarted it again.

    the file recovery tools couldn't find anything to recover.

    however, i managed to fix it.

    in my case the deleted temp folder was in my trash. (!)

    if you have this scenario follow the steps.

    1. Save the Files from trash.

    2. empty the temp folder in your untiy project.

    3. copy the saved files in to your unity project temp folder

    (NOW under "yourUnityProject\Temp\__Backupscenes" should be a file named "0.backup.")

    4. Copy that "0.backup" file in your main "myUnityProjectFolder".

    5. Rename "0.backup" to "yourProjectName.unity"

    6. Start.

     

    If you can compile your project and everythng works, congratulation!

    (first i tried to put the "0.unity" in assets. that caused that all my textures were pink and unity created a new assets and library folder in the assets folder were i'v placed it. i had to do all steps again.)

    anyway, i still couldnt run the project. the edior crashed with a 0 pointer error or somethig. the reason for that was a component in a model.

    after replacing that it compiled!!!!

    i hope it helps someone.

     

     

     

     

     

     

     

     

     

     

    Edited by Samet Serif
  • 1
    Avatar
    Deeds

    Seriously?

    Let me highlight the idiocy here:

     

    "If you want to restore your scene file, you cannot re-launch Unity Editor after the crash.

    If you do, you will lose the scene file and all your progress with it!"

    ---------------

     

    Somebody, somewhere, thought this was a good idea. Others coded it into reality without questioning it. Someones tested it. Someone else approved its release.

     

    All of these people need to examine their core values. They may be missing!

  • 0
    Avatar
    Artur Kokin

    Losing backup after re-launching Unity is beyond my understanding.. 🤦‍♀️

    Anyway, for those who are on Windows 10 and using OneDrive sync (and if you are saving project under your Documents or other synced OneDrive folder)

    Check OneDrive Recycle bin and search for /Temp folder, restore and proceed 😊

  • 0
    Avatar
    Dennis Lowe

    I tried looking for my Temp folder but none exist in the projects folder (or in any other folder that's connected with Unity for that matter...)

    After a whole day of building a scene it just disappeared through one small mistake I made.

    It's a shame that the developers have decided that such a simple thing like autosave is too much of a time waster, maybe it's because I am using a beta build (2018.2.14f1) and they don't want any leftovers when they call it a day..........

Please sign in to leave a comment.