- Home /
Question by
Xarbrough · Feb 04, 2017 at 07:05 PM ·
c#serializationmethodrenaming
FormerlySerializedAs for renaming public methods serialized in UnityEvents
I've got a few public methods which are referenced by UnityEvent instances throughout my scene. I would like to rename those methods without breaking the references in the inspector events. Is this possible?
I was hoping for something like the FormerlySerializedAsAttribute but for methods.
Comment
This has been a pretty major issue for me as well. I use UnityEvents extensively for component modularity, and rena$$anonymous$$g a method breaks quite a lot of references that I then have to track down and update manually. An equivalent to [FormerlySerializedAs] for methods would be perfect.
This would indeed be very helpful, as rena$$anonymous$$g method names is currently a PITA. The best method I found so far is a git + sed bash combo
Your answer