- Home /
Hide base class' serialized field in inspector
class a : MonoBehaviour
{
[SerializedField]
private int num = 5;
}
class b : a
{
...
}
How can I hide the num field in the inspector when using the b class?
Comment
Yeah, I coudn't find anything as well.. If you want put it as an answer
Answer by robert_southee · Mar 17, 2015 at 04:10 PM
You could write a custom editor for the derived class. Check this tutorial for more information about building a custom inspector.