- Home /
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.
Your answer
![](https://koobas.hobune.stream/wayback/20220613063650im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Parent Class variables in Child Class's Inspector (C#) 0 Answers
An OS design issue: File types associated with their appropriate programs 1 Answer
How do I show a variable in my base class in the inspector? 3 Answers
Trying to call a variable from another script in C# 1 Answer
Javascript and C#, different behaviour in inspector ? 1 Answer