• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by MusicBoxx · Mar 03, 2019 at 07:25 AM · crashrecovery

Unity crashed and I lost almost everything! How to recover my scene?

Hello, I was working on my game for days and I was stupid and I forgot to save! I was working on it for days and I lost everything after Unity randomly crashed without any warning! How can I recover my scene and prefabs? I reopened the Unity project. Does that mean I can't recover it anymore?

I honestly thought that Unity would have autosave feature by now since Xcode has it and so do many other Mac Apps. How come Unity doesn't have it? If Unity doesn't have it then why must my apps have this feature? I know Unity isn't avaliable on Mac App Store, but still…

Do I have to start everything all over again?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
16
Best Answer

Answer by dan_wipf · Mar 03, 2019 at 08:29 AM

THIS IS NO LONGER A VALID SOLUTION for 2021.x+ or newer Unity versions!


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.



so in your case you’d need a data recovery tool to get back the previous file 0.backup file => but i can not garanty for that have a look here


i guess you’re on a mac, maybe you’ll look for 0.backup in your temp folder => open terminal type this in to the Console: open $TMPDIR => this will open the temp folder on your mac, with a bit luck your last backup file is in there

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MusicBoxx · Mar 04, 2019 at 11:25 AM 0
Share

Thank you. I've learned my lesson. It's not too difficult to press cmd+s every once in awhile. It's really ashame that I did so much work and lost everything and more stupidly I opened the project right after the crash and even though I saw that I'm back at the beginning (all of my prefabs, particle effects etc) were gone I still pressed "Play" in order to see if they're still there.

Thank you for your reply and I'll keep that in $$anonymous$$d. Luckily it was my own project.

avatar image Czar-Man · May 14, 2020 at 03:13 AM 1
Share

Thanks for the help as well as the uneraser link. I'll try that out. Edit: Apparently the uneraser trial won't even let you save the recovered file. So it's basically holding my data for ransom. Recovered the backup file using Recuva, but it didn't work. Hopefully it won't take too long to finish.

I could have sworn that I did save before the crash. I'm now feeling furious that Unity apparently has no built-in save recovery system in the editor on startup - a feature that many other professional creative tools have. $$anonymous$$aybe a better autosave functionality would help too.

avatar image dan_wipf · Jul 05, 2020 at 07:37 PM 0
Share

what aswell a good way would be to prevent future data loss is using the paid colaboration function of unity or some other GIT method!


cheers dan

avatar image RoyBarina · yesterday 0
Share

Any >= 2021.x solution? Edit: Happened to me now on 2021.3.4 and I did tried to load 0.backup and it simply worked.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

112 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Corrupted recovered files using Shadow Explorer 0 Answers

recovery after a crash 2 Answers

NOOOOO my script's content entirely gone after computer crash 1 Answer

unity android dll seg fault signal 11 0 Answers

Game Crash: DEMO.exe caused an Access Violation (0xc0000005) 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges