Unity Just Crashed and I lost everything

Is there an auto save function in unity? I got into an infinite loop and had to restart unity and lost hours of work…

See this


It is a script that gives you autosave functionality for current scene for 1 to 10 Minutes.

For you info Unity auto-saves whenever you hit play. If it crashes, retrieve the __EditModeScene from the Temp folder (before you load Unity again) and rename it to whatever your scene file is called(quoted by Eric5h5).
But as the safe practice you should always save using control+s or command+s(Mac) frequently.