leegod
January 13, 2011, 6:16am
1
When I tested playing, acronis trueimage backup schedule start run, and it consumes all memory. I using 8giga memory.
So computer become extremely slowed, so I just let it go 1 hour.
After trueimage stop working, memory return back, but unity3d’s scene screen I worked was black.
So I just quit unity, it questioned me if I want to save. I click yes.
And then turn on unity again, oh my god…
Scene just I worked out was totally black out and become empty scene.
How can I go back to?
leegod
January 13, 2011, 6:39am
3
“__EditModeScene”. Where is this temp folder? Thanks for reply. But what I want is, restore 30~1 hour before’s scene file (scene that has many objects,etc). Is this also possible?
Sorry but unity does not have a built in restore.The temp folder is in your project folder.Go to your project folder.You will see a few files Assets, Library,and with those files you will see a file called Temp.Open it and you will find the EditModeScene.
Also make sure you start using this guys script.Works great.
Here:
Save this to a file named “AutoSave.cs” inside a folder called “Editor”.
To access Edit → Project Settings → AutoSave
Be sure to read the disclaimer information to ensure that you are using it right!
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
public class AutoSave : EditorWindow
{
public string relativeSavePath = "Assets/";
public string autoSaveFileName = "AutoSave";
public int secondsBetweenSaves = 600;
[MenuItem("Edit/Project Settings/AutoSave")]
static void Init()
{
// Get existing open window or if none, make a new one:
AutoSave window = (AutoSave)EditorWindow.GetWindow(typeof(AutoSave));
window.minSize = new Vector2(225, 21);
window.Show();
}
float nextsave = 0;
int timeLeft = 0;
bool showDisclaimer = true;
bool showDebug = true;
bool toggleVisible = false;
Vector2 winPosition = Vector2.zero;
Vector2 disPosition = Vector2.zero;
void OnGUI()
{
if (GUILayout.Button("Created By ReverieInteractive"))
{
Application.OpenURL("www.reverieinteractive.com");
}
GUI.color = Color.white;
GUI.contentColor = Color.white;
winPosition = GUILayout.BeginScrollView(winPosition);
if (showDisclaimer = EditorGUILayout.Foldout(showDisclaimer, "Disclaimer and Information"))
{
GUI.contentColor = Color.yellow;
disPosition = GUILayout.BeginScrollView(disPosition);
GUILayout.TextArea("IMPORTANT: The autosave will only save scenes if this window is OPEN and VISIBLE. If you hide this window, the autosave WILL NOT WORK!\n\n-------HELP INFO------\n\n\"Save Iteration\" - Seconds between saves (600 = saves every 10 min)\n\n\"File Name\" - The name of the AutoSave file (DONT name this the same as your opened scene)\n\n\"Relative Path\" - The path (from your projects folder up) to where the file is saved\n\n\"Apply Instantly\" - Applies settings and saves the scene without having to wait for the next save cycle");
GUILayout.EndScrollView();
}
GUI.contentColor = Color.white;
if (toggleVisible = EditorGUILayout.Foldout(toggleVisible, "AutoSave Settings"))
{
secondsBetweenSaves = EditorGUILayout.IntField("Save Iteration", secondsBetweenSaves);
autoSaveFileName = EditorGUILayout.TextField("File Name", autoSaveFileName);
relativeSavePath = EditorGUILayout.TextField("Relative Path", relativeSavePath);
showDebug = EditorGUILayout.Toggle("Show Warning", showDebug);
}
if(GUILayout.Button("Apply Instantly"))
{
SaveScene();
}
EditorGUILayout.LabelField("Next Save:", timeLeft + " Seconds");
GUILayout.EndScrollView();
}
void OnInspectorUpdate()
{
timeLeft = (int)(nextsave - Time.realtimeSinceStartup);
this.Repaint();
}
void Update()
{
if (Time.realtimeSinceStartup >= nextsave)
{
SaveScene();
}
}
void SaveScene()
{
EditorApplication.SaveScene(relativeSavePath + autoSaveFileName + ".unity");
nextsave = Time.realtimeSinceStartup + secondsBetweenSaves;
if(showDebug)
Debug.LogWarning("Saved scene: " + relativeSavePath + autoSaveFileName + ".unity");
}
}
leegod
January 13, 2011, 6:49am
5
Oh my god, then, when I turn off unity, EditModeScene disappear?
I check now and find that Temp folder only generated when unity is turn on.
Currently, scene file is totally become empty, I must restore this;;;
Thats all that can be done.Sorry.Get use to that ctrl+s a little more i guess.There is no other way to restore this to my knowledge.
leegod
January 13, 2011, 7:02am
7
So this make me gone to 5 days ago… I must thank myself at least I backed up whole 5 days ago. And also I want to blame myself not backing up every day…
I really want to cry…
leegod
January 13, 2011, 12:41pm
8
For other ppl, I want to describe what I experienced more detail.
When I test playing in unity editor, many object instantiated. over 20~30 character models.
At the same time, acronis true image start running, so true image’s memory leak occur (## Acronis!!), so unity playing screen stops, frame drop to 3~5 frame.
I clicked play button to stop, but didn’t work.
Even mouse movement does not work well.
Few times I moved mouse and few clicks to test unity scene with right mouse, but does not work.
Finally, unity stop playing game process. But whole scene’s hierarchy is gone. It become totally reset with nothing.
It has tons of terrains, models, cameras, etc…
leegod
January 13, 2011, 1:10pm
9
I restore anyway!!
I was using ucloud service for sychronizing working project folder with my laptop and desktop.
It automatically check changing files by real-time and backup it at online storage.
So it means, automatically deleted unity’s temp folders are all recorded already in online.
I checked it’s file wastebasket and found right _editmodescene file just before accident.
And restored it successful.