Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
1
Question by GuardiaN95 · Nov 07, 2014 at 12:13 AM · bugscenecrashlost

Unity crashed and I lost entire scene. Can it be recovered?

So, I have been working on a unity project for some time, I made nice scene, but today, unity crashed and my scene was lost. I didn't had any backups because the last thing that would come into my mind is loosing scene like this. Anyway, does anybody know the way how to get it back? I have menaged to restore some unity temp files, that were lost, but looks like they have nothing to do with the scene. Also, I have my game with this scene built, so maybe there is way to restore scene via built game? Anyway, if there is no way to restore this, I am happy that it happen now, because it could have happen in about a year, when I may had finished my game, so only thing that will be left to me then is to kill myself.

Comment
Add comment · Show 6
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 AlwaysSunny · Nov 07, 2014 at 12:13 AM 0
Share

Sorry to hear about this. When you say the scene was lost, do you mean the scene asset is missing from the project assets folder, or the scene is now empty?

I don't personally know of a way to investigate recovery, so let's see if anyone has advice. I hate to be that guy, but the best advice is making frequent backups. I backup my projects to discrete harddrives daily.

avatar image GuardiaN95 · Nov 07, 2014 at 12:39 AM 0
Share

Scene totaly gone, but every other project asset stayed (fortunately). Yes, I know now that I must do frequent backups. I was lucky that I have been doing a lot of learning on this scene, so it is not huge lost. I think that I can recover everything in about 2-3 hours.

But, i can't even imagine that it could happen in future, and all my work (maybe year long) could have be lost... This is nothing so serious, now. :)

avatar image b1gry4n · Nov 07, 2014 at 12:57 AM 0
Share

If you havent reopened unity since the crash, search your temp folder and find "__Edit$$anonymous$$odeScene". If youve opened unity, its gone

avatar image GuardiaN95 · Nov 07, 2014 at 01:00 AM 0
Share

I have menagged to recover it via program called "Recuva", but it won't load the scene, it is damaged, corrupted, I don't know...

avatar image nsejosh · Nov 07, 2014 at 01:01 AM 0
Share

this won't help you right now, but will help in the future- get a bitbucket.org or github.com account and use git to back everything up to a remote repository. Do this every time you complete a feature- ideally several times a day. it's free and will save your from heartache.

Show more comments

5 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by FairGamesProductions · Nov 07, 2014 at 10:07 AM

This is why I have made saving the scene a reflex. I basically hit Ctrl+S after every change to the scene. Sometimes Unity WILL crash, so making saving a habit helps minimize the damage. Because if it crashes before the first save, you will loose the entire scene. And as an added precaution, use 7Z to make backups of your project folder when going to bed.

Comment
Add comment · Show 2 · 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 hi1357357 · Feb 10, 2016 at 09:29 PM 0
Share

Ya, I do that too.

avatar image gtaylor1899 · Feb 16, 2016 at 01:03 PM 0
Share

Don't restart Unity until you recover your temporary file.

We did the same thing @FairGamesProductions. Saving both the project and the scene repeatedly, our scene was obliterated immediately when restarting Unity after it stopped responding.

All the best luck!!!

avatar image
0

Answer by meat5000 · Feb 10, 2016 at 06:38 PM

Answer by Eric5h5:

http://answers.unity3d.com/questions/13920/editor-crash-where-is-scene-data-kept.html

Provided you do not load Unity straight away after the crash, you can recover your scene.

Comment
Add comment · 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
0

Answer by MMOERPG · Dec 29, 2019 at 11:03 AM

This just happened to me, after a few deep breaths, I checked the recycle bin.

Comment
Add comment · 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
0

Answer by PrimeSoul · Dec 29, 2019 at 01:05 PM

do your self a favour and add this to every project you start, it has helped me countless of times where i would have lost allot of stuff:

Create a c# file named "AutoSave"

 /// <summary>
 /// AutoSave.cs, editor helper script. Saves the scene ans modified assets when you hit Play in the Unity Editor, so if Unity should 
 /// crash, or similar, you don't lose any scene or assets you haddn't saved before hitting Play.
 /// </summary>
 /// 
 /// <remarks>
 /// Created (date - name): 10th March 2015 - Gavin Thornton
 /// Modified (date - name): 8th Jan 2017 - Gavin Thornton - #if UNITY_EDITOR moved to fix cloud build
 /// Modified (date - name): 30th March 2017 - Gavin Thornton - line "EditorSceneManager.SaveScene(EditorSceneManager.GetActiveScene());" changed to multi scene version "EditorSceneManager.SaveOpenScenes();"
 /// </remarks>
  
 #if UNITY_EDITOR                 
 using System;
 using System.IO;
 using UnityEditor;
 using UnityEditor.SceneManagement;
 using UnityEngine;
 
 [InitializeOnLoad]
 
 #if false                           // Change this to "#if true" if you want to disble the script temporarily (without having to delete it)
 public class OnUnityLoad
 {
     static OnUnityLoad()
     {
         EditorApplication.playmodeStateChanged = () =>
         {
             if (EditorApplication.isPlayingOrWillChangePlaymode && !EditorApplication.isPlaying)
                 Debug.Log("*** WARNING:Auto-Saving DISABLED ***" + EditorApplication.currentScene);
         };
     }
 }
 
 #else
 public class OnUnityLoad
 {
     static OnUnityLoad()
     {
         EditorApplication.playmodeStateChanged = () =>
         {
             if (EditorApplication.isPlayingOrWillChangePlaymode && !EditorApplication.isPlaying)
             {
                 // Unity 5+
                 Debug.Log("Auto-saving scene and any asset edits" + EditorSceneManager.GetActiveScene());
                 EditorSceneManager.SaveOpenScenes();  
                 AssetDatabase.SaveAssets();
                 
                 // Old code for Unity 4.6 and below users below -------------------
                 //Debug.Log("Auto-saving scene " + EditorApplication.currentScene);
                 //EditorApplication.SaveScene();
                 //EditorApplication.SaveAssets();
             }
         };
     }
 }
 
 #endif
 #endif  // #if UNITY_EDITOR

Comment
Add comment · 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
0

Answer by kkkkkkkkkkkkkkkkkkkkkkkkkkkkk · Jan 18, 2020 at 09:58 PM

I had the same problem two times, a scene was lost with all the work in it. Very bad.The file size of the scene was 0 kb. Deleted. The other scenes were compete. No way to get it back because the file is empty. Now I dont just save it but duplicate it by the time and I have a really saved copy. In a crash the open screne sometime is lost, saved or not, totally with all elder savings. The problem occoures while using one project on two machines with the same file on a mobile hard drive. Now I always make a own copy before using it on the other one. This seems to work. But quiet expensive in diskspace and time.

Comment
Add comment · 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

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.

Follow this Question

Answers Answers and Comments

14 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

Related Questions

Error: Default Scene Not Set - Please Run Wizard 1 Answer

Scene and hierarchy suddenly empty 0 Answers

Unity instantly crashes when switching from game to scene view. 2 Answers

Random RenderTexture error crashes Unity 0 Answers

Strange exporting to Android results 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