Custom DecoratorDrawer work on monobehaviour but not shaderlab

Hi,As Unity default support “Space” and “Header” decorator drawer in shaderlab.

So I decided to make my own, finally I found my custom decorator drawer only work in Monobehaviour but not shaderlab,Is that what Unity design?

Shaderlab probably uses a custom editor to draw its properties.
So potentially it may not draw yours. Check its source code.

When a property drawer class name ends with “Decorator”, that is a property decorator, similar to DecoratorDrawer. They are used to create headings and dividers between properties that don’t affect the property itself. A single property can have multiple decorators on it. The built-in decorator drawers are: SpaceDecorator, HeaderDecorator.