- Home /
How can a class inherit from another that is modified by editor
I mean, i have 1 class that inherit from Editor, thats the class A. The class B inherit from MonoBehaviour. The class A modifies the inspector for class B. I just want to create a new class that inherits from B, but when I make: Public Class CClass : BClass{ } It only inherits methods and variables, but if the class A modifies the Inspector for class B, it doesnt work for class C.
How can I do, to have my class C with all the properties for class B, including the modifications made by class A in the Editor?
Thanks for your reply!!
Comment
Answer by asafsitner · Sep 04, 2012 at 06:43 AM
Custom Editors for inherited classes (and interfaces) is not currently supported by Unity. You'll have to write a custom editor for each class separately.