Deadcow
Member
I did some refactoring and changed the namespace of the type I use for variables. It was Gameplay.Abilities.TargetProvider and I changed it to Gameplay.AI.TargetProvider. Unfortunately after some time I noticed that it broke the variable references. I see the space reserved for them in the variable list as separate lines and able to drag and reorder the lines.
For some reason, revert of the namespace change did not helped to fix this issue and I had to revert Subtree asset changes.

Another issue I noticed is with changing of the base class is that the references of the variables was lost. I changed "TargetProvider : MonoBehaviour" to "TargetProvider : TargetProviderBase : MonoBehaviour" and all the vars of TargetProvider type in existing prefabs with Subtree asset was nulled.
I assume those issues are not easy to fix, but I guess you should know about them. Some conversion tool would be nice to have, or a way to reassign the variable type if it is not found in codebase
For some reason, revert of the namespace change did not helped to fix this issue and I had to revert Subtree asset changes.

Another issue I noticed is with changing of the base class is that the references of the variables was lost. I changed "TargetProvider : MonoBehaviour" to "TargetProvider : TargetProviderBase : MonoBehaviour" and all the vars of TargetProvider type in existing prefabs with Subtree asset was nulled.
I assume those issues are not easy to fix, but I guess you should know about them. Some conversion tool would be nice to have, or a way to reassign the variable type if it is not found in codebase
