Stackable Decorator is a set of property drawers which allow you to stack multiple decorators on it, each decorator also modifies all stacked decorators and drawers.
For example, a box decorator stacked on a property field, it draws a padded box background on the field. If a color decorator stacked on, the color of the box will be changed. Then, a heading decorator stacked on, a heading is drawn above the boxed field.
[Heading(title = "Heading", order = 2)]
[Color(0.5f, 0.5f, 1f, 1, order = 1)]
[Box(2, 2, 2, 2)]
[StackableField]
public string field;
StackableField is standard property drawer with stackable decorator support. The order of the decorator is the stack order from inside to outside.
Here is the code that create the logo of Stackable Decorator with a bool field:
[Heading(top: 8, order = 7)]
[HorizontalGroup("Logo", 0, 98, order = 6)]
[Box(4, 4, 4, 4, style = "flow node 1 on", order = 5)]
[Heading(top: 2, bottom: 6, title = "Stackable", width = -1,
style = "WarningOverlay", order = 4)]
[Color(1f, 1f, 0.5f, 1, order = 3)]
[Box(4, 4, 4, 4, style = "flow overlay box", order = 2)]
[Label(-1)]
[StackableField]
public bool Decorator = true;
Please read the wiki for the document of property drawers and decorators.
[ Asset Store ] - [ Forum Thread ] - [ WIP Thread ]
Added TextField, DropdownValue, EnumPopup, EnumMaskPopup, LayerMaskPopup, DropdownMask