Constant problems with Unity's saving system.

Hey I am working with Unity for around half a year and I have already seen a plethora of bugs with it’s scene and prefab saving system.

On a constant basis it destroyes the options I set in my custom components. Like if I have a reference to a prefab then one day I start the editor and poof - the reference is gone. Floats? Bool parameters? Gone on a regular basis. The recent thing blew my mind: the client could not connect to the server and hang the editor, throwing a weird error after I found a magic way to remove the stunlock. The reason was inside the NetworkIdentity component (thank God, the Internet had it figured out). I removed it and re-added and everything returned back to normal.

Basically at this point I have almost decided that I need a custom saving system, and I have even started it already (right now it serves a purpose of being able to load options in my prefabs for the cases when I refactor my code that is already being used by many prefabs). But what I am wondering is how people even use Unity or build levels in it when things are so terribly wrong with it’s saving system?

Maybe I am doing something worng?

Honestly I’ve never seen that happen ever. No idea what could cause it though.

–Eric

1 Like

Are you using serialzed fields? Are you doing save project from time to time? Are you trying to change values at run time? Are using vcs and not checking in meta files?

As Eric, I don’t encounter this problem either.

Thanks a lot for your replies guys. No I am doing everything properly, but your answers got me thinking that all the time I am using Unity, I’ve been using it with Vexe’s editor extension installed. I will try to remove it’s files from my project and see what happens.

I will post my results in a week or so.

Weirdly enough it is still happening… Luckly I found a solution: just restart the editor. Now I just need to be vigilant enough to always spot the problem before I go on and save the scene…

Updated Unity version, moved only my scripts, rebuilt all prefabs from scratch, got rid of almost all the plugins - still happens, still happens…