Search Unity

[Free][Open Source] Stackable Decorator - property drawer with multiple stackable decorator

Discussion in 'Assets and Asset Store' started by lokinwai, Mar 8, 2018.

  1. lokinwai

    lokinwai

    Joined:
    Feb 11, 2015
    Posts:
    174
    [ Asset Store ] - [ Github ] - [ Wiki (Docs) ] - [ WIP Thread ]

    small.png

    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.

    Code (CSharp):
    1. [Heading(title = "Heading", order = 2)]
    2. [Color(0.5f, 0.5f, 1f, 1, order = 1)]
    3. [Box(2, 2, 2, 2)]
    4. [StackableField]
    5. public string field;
    Sample.png

    Stackable Decorator is current in beta, more feature will be added.

    EnumButton.png

    List.png

    Group.png
     
  2. lokinwai

    lokinwai

    Joined:
    Feb 11, 2015
    Posts:
    174
    Stackable Decorator is also able to decorate EditorWindow.

    EditorWindow.png

    Image Rechannel is a example of using Stackable Decorator to decorate EditorWindow.
    Image Rechannel : [ Asset Store ] - [ Github ] - [ Forum Thread ]
     
    MostHated likes this.
  3. lokinwai

    lokinwai

    Joined:
    Feb 11, 2015
    Posts:
    174
    Released 0.2: Fixed bugs, improved code, and added:
    • TextField - multiline and placeholder
    • DropdownValue - placeholder, custom name and value
    • EnumPopup - placeholder, custom name and exclude name
    • EnumMaskPopup - placeholder, custom name, value and exclude name, with redesigned popup
    • LayerMaskPopup - redesigned popup
    • DropdownMask - placeholder, custom name and value, with redesigned popup
    2018-03-08 07-34-04.gif

    EnumPopup.png

    2018-03-13 17-49-42.gif

     
    Last edited: Mar 16, 2018
  4. lokinwai

    lokinwai

    Joined:
    Feb 11, 2015
    Posts:
    174
    Released 0.3: Fixed bugs, improved code and added:
    • ColorField - showEyedropper, showAlpha and hrd.
    • CurveField - color and range. ProgressBar - min or max, decimalPlaces and showLabel.
    • TagPopup - placeholder and exclude items.
    • LayerPopup - placeholder and exclude items.
    • SortingLayerPopup - placeholder and exclude items.
    • InputAxisPopup - placeholder and exclude items or types.
    • AnimatorParameterPopup - placeholder and exclude items or types.







     
    AthrunVLokiz likes this.