- Home /
Draw Custom Inspector for base and child classes, but add default Inspector for child classes
I have a custom Inspector marked with [CustomEditor(typof(MyType)), true], which works for the base class and all child classes which inherit from MyType. So far so good. Now, I would like to add in a line that additionally draws the default inspector for only the members of the child classes.
Base class: Base Custom Inspector. Child class: Base Custom Inspector + Default Inspector for only the additional child fields.
Is this possible with a single CustomEditor or do I need to create one for every inheriting class?
Your answer
![](https://koobas.hobune.stream/wayback/20220613201138im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
An OS design issue: File types associated with their appropriate programs 1 Answer
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How to change variables from another script? 1 Answer
Inheritance best solution to handle *many* instances of a class with unique values? 1 Answer