informa
/
1 MIN READ
Blogs

You can restore unsaved scene after Unity crash

Unity, as with any other software out there, may crash from time to time. It's not a big deal unless you were just about to end your workday. Author: Piotr Korzuszek (The Knights of Unity)

This post has originally been published on The Knights of Unity blog (http://blog.theknightsofunity.com/can-restore-unsaved-scene-unity-crash/) by Piotr Korzuszek.

Unity as any other software out there may crash from time to time. It's not a big deal unless the last time you saved your scene file was somewhere near your lunch and now you are just about to end your workday. Do you know that feeling? Have you just lost many hours of hard work? Maybe not!

unity crash

Even if you didn't know that, Unity is saving your scene every time when you hit the play button. No, it's not saved over the original scene file, instead it is saved in the project's Temp directory!

Now be careful! If you want to restore your scene file, you cannot re-launch Unity editor after the crash. If you do, you will lose the scene file and all the progress with it!

Restoring crashed scene

If you want to restore your crashed scene, you have to go to your project's directory (this is the folder that contains the Assets directory) then enter the Temp directory. You will find the __EditModeScene file within. This is your saved scene file.

temp directory

Now all you have to do is to copy this file and replace your previous scene file with the copy. You will need to set the file extension to unity in order to make this file recognizable as Unity scene file.

scene file replace

Please remember to backup your project folder before making this kind of changes. If you make any mistake, you can easily go back and try again. Without the backup you have only one chance to do it right!

This post has originally been published on The Knights of Unity blog (http://blog.theknightsofunity.com/) by Piotr Korzuszek.

Latest Jobs

Disbelief

Hybrid, Cambridge, MA or Chicago, IL
5.31.23
Quality Assurance Lead

Bladework games

Remote (United States)
5.18.23
Senior Gameplay Engineer

High Fidelity, Inc.

Remote
6.2.23
Game Interaction Designer

Fred Rogers Productions

Hybrid (424 South 27th Street, Pittsburgh, PA, USA
5.19.23
Producer - Games & Websites
More Jobs   

CONNECT WITH US

Explore the
Advertise with
Follow us

Game Developer Job Board

Game Developer

@gamedevdotcom

Explore the

Game Developer Job Board

Browse open positions across the game industry or recruit new talent for your studio

Browse
Advertise with

Game Developer

Engage game professionals and drive sales using an array of Game Developer media solutions to meet your objectives.

Learn More
Follow us

@gamedevdotcom

Follow us @gamedevdotcom to stay up-to-date with the latest news & insider information about events & more