Hi, Justin,
I understand that that most of the UCC class has its own Inspector Drawer for customization.
Inspector customization is really nice but there is one problem.
If we were to inherit from it or extend it, we must write the customs inspector.
This can be quite tedious and error-prone and I reported that there are several UCC properties are not visible on the Inspector.
It's very easy to make the mistake.
I was thinking if there is a better way to handle and here is one solution I came up with.
Keep the current UCC inspector as is and extend the DrawField to tag the field as you draw.
After drawing all custom properties, loop through the normal public properties (visible properties to Inspector) and if it's not tagged, draw them.
This way, no properties are missed and it's up to the user whether to customize or not.
What do you think?
I understand that that most of the UCC class has its own Inspector Drawer for customization.
Inspector customization is really nice but there is one problem.
If we were to inherit from it or extend it, we must write the customs inspector.
This can be quite tedious and error-prone and I reported that there are several UCC properties are not visible on the Inspector.
It's very easy to make the mistake.
I was thinking if there is a better way to handle and here is one solution I came up with.
Keep the current UCC inspector as is and extend the DrawField to tag the field as you draw.
After drawing all custom properties, loop through the normal public properties (visible properties to Inspector) and if it's not tagged, draw them.
This way, no properties are missed and it's up to the user whether to customize or not.
What do you think?