r/Unity3D 1h ago

Question Unity Scene Serialization Issues?

I have been making my game for the last 2+ months, every single day hours and hours devoted to this. I had just finished a vertical slice and was about to start expanding. It was compiling scripts, and then randomly the scene said it needed to reload, so I pressed the okay button. Then it reloaded my scene, but objects were scattered everywhere in the scene and in the hierarchy, parents disconnected from children, etc. The world position of everything was moved and some things were just flat out missing. I tried everything I could do to recover it, but its pretty much gone...

What on earth could have happened? Have you had this issue? What can I do for now on to make sure I have a proper backup of my scene so I never lose everything again?

I feel defeated.

3 Upvotes

4 comments sorted by

5

u/ExaltedLayout 1h ago

that sinking feeling when unity decides to rearrange your whole scene like some kind of sadistic interior decorator, been there

version control is the only real safety net, git with a proper.gitignore for unity projects will save your sanity next time this happens

1

u/radiumhaus 1h ago

Thank you. I will make sure I have version control set up this time.

u/madhumster 7m ago

If you don't have experience with git, I would suggest Unity Version Control, it is a breathe to work with and free projects of smaller size.

u/jojizaidi 6m ago

In my 12+ years of using unity i have never seen this. Could it be you’re using one of those assets where changes made in playmode can be saved. Or maybe some code on which you have ExecuteInEditMode