|
Generally unity is a stable program, but i do experience some problems from time to time. As discussed in another answer, an infinite loop is a particularly tricky one that you can't recover from and will take the editor down, understandably. Anyways i wondered if there was the possibility or if such an editor script existed already that would autosave unity every so often. I wouldn't object to it doing something visible like a countdown to when you can expect a pause to happen. Some intelligence would be good if it could wait till you aren't holding down a mouse button doing anything to objects or properties. Ideally it could autosave out to separate files than normal but i don't know how feasible this is, its not like the unity scene/project is stored in just a few files, or are they? If this is not possible just saving with the defaults would still be better than nothing. Cheers
(comments are locked)
|
|
I don't know of any existing scripts, but you could easily create your own. Take a look at the EditorApplication class. Particularly, the SaveScene, SaveCurrentSceneIfUserWantsTo and SaveAssets functions, as well as the currentScene property.
(comments are locked)
|
|
Eric5h5 reported on the forums:
Hopefully the next person to suffer reads this Answer before restarting Unity and pressing Play again. And maybe one day Unity will pay attention to that file on restart ("Unity crashed, and in addition to sending in a bug report, here's all your work back..."). Note that this doesn't save assets, so it's only half a solution.
Jul 30 '11 at 02:48 AM
Waz
(comments are locked)
|
|
There's an AutoSave Script on the Unify Community Wiki. This seems to work. Nice find! Thank you!
Sep 21 '11 at 01:13 AM
Cymrix
(comments are locked)
|
|
Given the amount of trouble I seem to have when running the game with the project and the scene being lost if it crashes (which is frequent for me when attaching the debugger) I have written an auto save on run - rather than on a frequency: Since UDN this code editor absolutely sucks.
Jul 15 '12 at 05:40 PM
whydoidoit
(comments are locked)
|
