# Managing Unity Scenes during refactoring?

Most of my Unity project code is in a visual studio project, and I use Unity for UI/Rendering/wiring things together.

I renamed some fields in an object and suddenly the game, when run in unity, became unrunnably buggy. It turned out that a field I had set in the unity frontend had been unset when I renamed it.

What's a good way to avoid these sorts of problems when working with unity? I was using version control and could have reverted to an old build in the worst case, but I couldn't find any human-readable Unity Scene files that could have just shown me what I changed.

For refactoring fields check out the FormerlySerializedAs attribute. See: https://docs.unity3d.com/ScriptReference/Serialization.FormerlySerializedAsAttribute.html