Playing around with custom editors led me to use inheritence a bit, and it worked fine:
The parent editor class:
[CustomEditor(typeof(Parent))]
public class ParentEditor: UnityEditor.Editor
{
public override void OnInspectorGUI()
{
// Code here
}
}
The child editor class:
[CustomEditor(typeof(Child))]
public class ChildEditor: ParentEditor
{
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
// New code here
}
}
But the same isn’t possible with Property Drawers. The child’s OnGUI method is simply ignored and only the parent’s OnGUI method is being called.
Am I missing something?