Edit UserDefinedEnum entries


I’ve been trying to find a way to edit my UserDefinedEnum via EditorUtilities or Python, but no luck so far. Is it even possible or does it require C++ magic ?

My need is to reduce the amount of steps a user has to do to create a new game ingredient (imagine adding fruits). The way it is done at the moment, requires the name of the fruit to be listed in an Enum. So, i wanted to create a tool that does a bunch of stuff, including to skip having to add it manually in the Enum list.