HideInInspector with inherited variables

I have a base class that holds some of my main public variables. I have a few classes that inherit from the base class that use those variables.

I don’t want the child scripts to show these variables in the inspector, but I do want them to inherit the variables. How can I make it so the base class shows the variables in the inspector but the inherited classes do not also show these variables in the inspector?

I know there’s HideInInspector, but I am not sure how to use it with inherited variables after they are initially declared in the base class.

You’ll have to write your own Inspector.

Read this document on extending the editor.