Search Unity

Suggestion: New Array Behavior

Discussion in 'General Discussion' started by Apiweb, Jan 6, 2014.

  1. Apiweb

    Apiweb

    Joined:
    Nov 26, 2011
    Posts:
    57
    I would suggest a new default behavior for Array in the properties inspector, you would use one like the manager layers.


    \ /
    \/


    I think this second image easier to work with arrays, it's easier to reorder items, and if I need to add new or delete, I will not need, edit the number of items.

    The designers of my project loved it, they said it's much easier to work that way, than to be incremented / decrementing numbers to add / remove items.
     
  2. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    10,161
    There'd need to be a way to enter a number for arrays so you don't need to click repeatedly if you have an array of more than a few items.
     
  3. Apiweb

    Apiweb

    Joined:
    Nov 26, 2011
    Posts:
    57
    Could then be a PropertyDrawer, Unity already provides some, this could offer for Arrays, something like [ArrayCompact]

    Example of other properties using the Properties Drawers of Unity 4:

    If Unity provides this Property Drawer, would be optional, and each would implement this kind of behavior in the Array to your liking.