TylerTemp / SaintsField

A Unity Inspector extension tool focusing on script fields inspector enhancement
MIT License
148 stars 9 forks source link

[Milestone] Enhance the `[Layout]` & `[DOTweenPlay]` for easier grouping #37

Closed TylerTemp closed 2 months ago

TylerTemp commented 2 months ago

Based on #36, to give a bit of modification of Lx34r's PR, to make the API a bit more easier to use and understand.

Reference:

Propose for SaintsField:

  1. Keep Layout(groupAllFieldsUntilNextGroupAttribute, closedByDefault) as is (may need to rename a bit)
  2. Add LayoutGroup(), which is syntax sugar for Layout(groupAllFieldsUntilNextGroupAttribute: true)
  3. Add LayoutEnd(name), which close the target grouping. Different from Layout(name, closedByDefault: true) is that, the decorated target is not added to the ending group.
  4. DOTweenPlay will use the similar syntax(TODO: more detail for this), and remove MarkPlayaMethod
TylerTemp commented 2 months ago

Fixed in 3.1.0