I have a very simple plain C# class that uses [System.Serializable] to be editable in the Unity Editor. It has a field that takes an enum, and I would like the class to update its name field to the enum whenever an enum is selected. As it doesn't inherit from MonoBehaviour or anything, I can't use the normal Editor extensions.
Is there a way to achieve this?
Online I read about C# 7.3 possibly achieving this with autoproperties, but my C# version is lower, so if possible I'd prefer not to update as Unity can be unstable with stuff like that. If the conclusion is "use autoproperties", then that's fair