Unity just crashed to desktop and lost 6 hours work!

Unity 5 just pissed me off big time. I back up every night, I save the project about every 30 minutes, or whenever I consider I’ve done enough work to be safe. Well I’ve been saying all day then just now Unity crashed to the desktop. Then when I re opened it ALL my last 6 hours has gone!! It seems to have reverted my project to how it was 6 hours ago when I launched unity and loaded the project.

So my question is where did it all go? Does unity keep some kind of backup and use that when it messes up? Is the last 6 hours really gone or can I recover it somehow?

So pissed at unity right now. I even have a time machine running but it never caught this.

Are you using version control or were you just saving manually?

Unity doesn’t keep a backup, did you get the crash dump file when it happened?

No version control. I backup continually with a time machine backup but that only backs up about every 8 hours. every 24 hours I manually backup the project.

No I didn’t get the crash dump. It happened just as an IOS build completed. The build was successful then the editor crashed.

My question is how and why did unity revert to a version of the scene from 6 hours prior? which just happened to be about the time I initially opened the editor. I checked and all the assets were there that had been created but the scene file was hours old. it’s like either the scene wasn’t being saved on save project or save scene, or unity keeps a backup somewhere?

Hi,

Could it be that you only used “Save Project”?

This does not save the scene only the assets. Which seems to be consistent with your findings that the assets were saved but not the scene.

“Save Scene” or CTRL-S/CMD-S will save both the assets and your scene.

1 Like

"No version control. "

Get version control…

Use version control…

Don’t let this happen again.

Unity needs an autosave option… from time to time someone suffers from the lack of this simple feature.
http://feedback.unity3d.com/suggestions/editor-add-autosave

But it looks like that every time you enter play mode, your current scene is saved under the Temp folder with the name _EditModeScene.

WHAT? Save project doesn’t save the scene?? Are you sure? the word ‘project’ would imply it saves the whole project which should include the scene. Ok I now save scene and project about every 10 minutes.

Oh I’m a one man band so don’t need version control. Backing up every 6 hours should be enough.

Yes I am sure.

That said you don’t actually need to use “Save Project”. “Save Scene” will save both the scene and all the modified assets.

Yes you do need version control.

I can’t believe you are so stubborn about it.

If you had committed after “Save Project” you would have noticed the scene wasn’t included. That would have saved you 6 hours of work you just lost.

Says the man who lost 6 hours worth of work.

But to be honest “Save Project” is a confusing name for what it does and it’s not explained in the documentation as far as I can see. It’s a long standing and frequently recurring source of confusion and lost work. For example: Why do I "Save Project"? - Questions & Answers - Unity Discussions

In the Scripting API there is EditorAppliction.SaveAssets but no mention of “Save Project”. I think “Save Project” also includes saving the editor settings, so that could explain the difference in name. Or maybe the editor settings are considered a type of asset.

So why does the distinction between “Save Scene” and “Save Project” exist in the first place? There is a use-case: saving assets without saving a dirty scene.

My suggestion would be to rename the “Save Project” to “Save Assets” and add documentation about saving things in the Editor.

1 Like

There needs to be a save all button. I understand that sometimes I want to save assets and not the current scene, because that’s crazy useful when just modifying a prefab, but I can’t think of a situation where you’d save a scene and not save the whole project as well. I mean, why not? I would like to request a name change and a slight functionality change:

2 Buttons as it is that say
Save Assets (Just saves modified assets without saving modified scenes)
Save All. (Saves everything).

If you have suggestions you can use http://feedback.unity3d.com/, if you feel the documentation has issues this can be reported using the bug reporter. Every little helps :smile:

OK.

God I’m too altruistic, I hope it isn’t a waste of time.

http://feedback.unity3d.com/suggestions/rename-the-save-project-and-save-scene-menu-items

1 Like

I just realize there’s this on the roadmap for Unity 5.3: Multi-scene Editing. Save All is going to be confusing as that commonly refers to saving multiple documents.

Maybe…

Save myscene.unity
Save myscene.unity As…
Save All Scenes
Save Assets
Save Everything

1 Like

Love all the suggestions might I add one… Make unity not crash so often in the first place!

Just a quick update, we now have a shiny new page in the manual about… saving!

2 Likes

It’s beautiful! (((o(゚▽゚)o)))

We also have a new manual page ready for the Multi-Scene editing feature which includes info about saving and will be in the docs when the feature hits :wink:

1 Like