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 
How can I solve the problem?
Thanks in advance.
Check if your Animator component not equal null, just assign animator component to your script
– RageEye