Im just not seeing how its possible to fully manipulate an enum in such a manner, if you are removing them then the order changes and while you can resolve some issues to a degree Im not seeing how it can work at serialization time.
Acouple of scenarios:
- If your enum name changes and your serialized data is the older value how do you resolve the change of name without a redirector?
- If you remove an enum value from the middle of the pack how do you resolve that in the switch statement? You still have to update the enum in places where you use it.
The beauty of data driven models is they are content aware, they can know when you update a name and adjust all links accordingly. Const kinda means what it says, constant so its not intended to be variable in such a manner, reordering lists etc.
I appreciate your goal is performance but there will be trade offs, sometimes those have to come from our end but perhaps I am just not fully understanding the use case and the end goal because of the closed question
Oh and the Animation Editor uses a drop down list of names for bone selection I think it was.