My unity project completely deleted.

I was working on my project as usual and then suddenly I realized the project became completely empty. WTF? I exited the editor and opened it again my project was not in the recent projects list. Is this fucking intentional? I’m really mad and confused right now. Can somebody tell me if there is a circumstance which Unity takes the liberty to delete an entire project?

Did you happen to look in the folder where you left it?

Why are you so upset if you deleted it? You can just pull from your version control.

nope

without knowing how/what you were doing we’re not really going to be able to help you there…

when less (understandably) mad, check out the available free source control solutions:
https://unity3d.com/learn/tutorials/topics/cloud-build/creating-your-first-source-control-repository
https://docs.unity3d.com/Manual/ExternalVersionControlSystemSupport.html

etc.

Maybe you deleted it yourself or the harddrive it runs on is offline, but for sure Unity did not delete it.

1 Like

Unfortunately I did not setup version control. Yes I checked in windows explorer. Everything inside the project folder is gone.

If it was not unity then the situation will be much more relaxing. It’s a very complex editor extension project so maybe it’s a hidden bug of my code.

Thanks for the links. I will absolutely 100% setup version control for my project.

Thank goodness you can copy from your backup.

1 Like

Yeah I get it. The hard drive is fine. It’s either my code or a virus doing it. thanks

Yes I have a backup from a week ago.

1 Like

Lifesaver. Needed mine on more than one occasion lol.

1 Like
  • Start new project.
  • Commit to version control.
  • Work.
  • Commit work.
1 Like

It could be in the trash right?

1 Like

Fair point.

At least lets be fair, what IF Unity deleted the project and this is a huge bug?
I also miss a project of mine, while I can imagine that I deleted it as I got version control I am not 100% sure. But I also moved things around and potentially missed it somewhere…

1 Like

yes good to file a bug report

How would you file this bug report? Can you imagine how dumb it would look?

  1. What happened?
    My project folder disappeared.

  2. What were you doing?
    Sleeping.

  3. How can we reproduce?
    I have no clue.

  4. Attach a project?
    There is no project.

Considering that the OP doesn’t even use VC I feel pretty safe in assuming that he accidentally deleted it himself and this isn’t a Unity bug. I can’t think of a single case where Unity has ever legitimately deleted the entire project folder. You could write a script to do it, and Unity runs that script, but it isn’t going to do it out of the box.

2 Likes

No it isn’t. It’s permanently deleted.

What made me suspicious is the fact that when I reopened unity the project was not in recent projects list. It’s my only project and I always work on it. Maybe unity verifies the projects and removes them from the list if they are not valid Unity projects. In any case it is odd to me.

Every time Unity loads it checks the project list for validity and removes invalid project buttons. (eg, if the project folder isn’t there or isn’t valid then it takes it out of your list)

1 Like

That explains it. BTW what version control program do you recommend?

Bitbucket + Sourcetree.

1 Like

I did not say to file a bug report, just proposed the idea of what if.