Hi, I just started learning Unity. Seems pretty easy to work with… except…
Last night, I closed down my work for the day. Opened up my project today and nothing exists from the day before except a folder I manually created within the project to house my sprites. Seems like everything in the “Assets” folder got wiped. Why did that happen? There was no crash. I was saving often. It even deleted files that I originally was able to reopen from the day before.
I’m on a mac. The one suspicion I have about last night compared to the night before (no problems opening the project yesterday) was that I tried creating multiple scenes and used the scene manager to load them. During this period, I also removed the sample scene from the build settings. Everything was working fine so I don’t think that I corrupted anything, unless Unity requires a specific order of operations to ensure that everything persists?
When trying to open recent scenes, it looks like it’s TRYING to find something that once existed, because it’s showing some broken path output in the menu dropdown. So there is some meta data somewhere that at least let’s me know my work wasn’t all just a vivid fever dream:
Could it be an issue with the mac version? Is it because of Unity Hub? Is it because I hadn’t set up version control at all and left it as “apple file merge”? I see a lot of questions about this on the forums but haven’t really seen a good explanation as to what is causing people to lose all of their files. Did Unity try to back up to a previous version when I opened the project? Why didn’t that happen the first day I reopened the project? Could I have done something differently to prevent the files from being lost?
Before anybody tells me to use version control, this was a test project just to see if I like the engine. I use version control on a daily basis and yes, I know it’s good advice. That being said, version control won’t prevent this problem from occurring. It just mitigates the damage when/if this problem does occur. If I have to reclone my repo or pull down assets from some external source every other day because Unity randomly decides it’s time to delete everything in my project, then I’m pretty sure I’ll just use something else. I’m only posting this to learn exactly why something like this might happen and how to avoid it in the future.
It wasn’t a great project by any means, but it was fun to work on and I’m sad that I lost it all. I did manage to export an app before this happened so at least I can play that and reminisce on all the work that got lost lol. Oh that reminds me, the folder that housed the built application was also manually created by myself. I’d imagine that is why it didn’t get wiped. Hmmm…
Thanks for taking the time to read this. Any advice/experience/suggestions as to possible causes would be much appreciated.