Help! My unity game wiped , how can I get it back?

After downloading an asset , I entered an demo and it literally deleted everything in the game, I am wondering can I get it back please. I have spent an long time on this.
it first caused an complation error which made me enter safe mode and then after I exited safe mode everything was gone.

2 Likes

Revert and checkout latest working version

2 Likes

no way to recover, if you didn’t have version control / cloud or backups…

Did it delete/overwrite only scene or all scripts and other files too?

You can try using some undelete tool (recuva, recoverrx),
but most likely cannot restore all files.

If you have existing build, you can try decompiling it to get some data back.

It has happened to others too,
if you import samples or assets, that have same scene, it can overwrite your scenes or files.
Or, sometimes Unity hub bug resets your project to empty one.

2 Likes

You need to have backups.

Git is one of the version control systems that allows you to save every change in your project, saving the history in the cloud:

  • Bitbucket + Sourcetree + Git (my setup).
  • GitHub + GitHub Desktop + Git.
  • Unity Version Control.
1 Like

MS devops gave no limit on the repo size. We migrated from bitbucket to deveops because of this

2 Likes

how can I do this?

1 Like

That advice was contingent on you actually using some form of version control.

If you weren’t, you’ve learnt the lesson the hard way and it’s time to start using version control.

2 Likes

Ok Now i understand
Thank you

1 Like

This isn’t helpful. Yeah, we all know that’s the “right answer”, but you should read the room. The kind of person asking this question probably A) Has no idea what version control is, and B) Therefore doesn’t have a latest working version to revert to. So telling them to a revert to a likely non-existent backup isn’t helpful.

I’m all for explaining helpfully that people should be using version control / backups for their projects. But your response just feels arrogant.

Yes, i also face the difficulties. Please give proper answer.

You cant because you didnt use versioning. :frowning: But lessons learnt right :smiley:

1 Like

I have tried to set up unity version control for another project but after creating a new another one it just says,

1 Like