About the Custom Inspector

When I create a custom inspector of a class ButtonExtention(subclass of Button), and there is a public bool variable bb I add in ButtonExtention. Although I can see the bb varialbe in inspecotr, the layout of the Inspector changed like this 115392-1-2.png

How can I solve the problem?
Thanks in advance.

I got this problem like yours. And I searched a way to solve it is that using the Reflection. However it didn’t work even made the unity crushed. Anyone can solve it?