public class Weapon
{ // some public fields and methods
}
public class Axe : Weapon
{ // more public fields and methods
}
public class Inventory : MonoBehavior
{
Weapon weapon1;
}
I have a custom property drawer for every one of the classes inheriting Weapon. The inspector only seems to want to use a CustomPropertyDrawer for “Weapon”, no matter which Weapon-inherited object I have assigned to the Inventory->Weapon object. Is there an easy way to fix that?
No worries. I got tired of messing with it. I’m just constructing a larger CustomEditor and having each inherited object keep up with it’s own OnGUI function to call during the CustomEditor manipulations. Works amazingly well I’m intrigued to know what I was doing wrong, but if anyone ever has a similar requirement, my recommendation is to go with the CustomEditor, no matter how much larger of a beast it will be … everything just went so much more smoothly for me in comparison.