editor icon indicating copy to clipboard operation
editor copied to clipboard

Add ability to Insert Element ScriptType in Array

Open yaustar opened this issue 3 years ago • 4 comments

At the moment we can delete elements but not add a new one in the middle of the array.

This is extremely time consuming to add new elements in the middle of the array

image

yaustar avatar May 03 '22 08:05 yaustar

@jiajasper Design pass?

yaustar avatar May 03 '22 08:05 yaustar

Added example project here: https://playcanvas.com/editor/scene/1406644

yaustar avatar May 03 '22 12:05 yaustar

Please see design for #752 and #753

image

Changes are as follow:

  1. Added dragging
  2. Added a + icon to add new element to the end of the list, then the user can drag it to insert it anywhere within the array
  3. For some visual hierarchy, we only enable the input box on Array Size when user hover over it

https://www.figma.com/file/kMiAhzD5xlSobeBuU6lxRy/Jasper-PlayCanvas-Hub?node-id=799%3A37321

jiajasper avatar May 03 '22 12:05 jiajasper

This feature is very sorely needed on our part! We have a large array of configured JSON attributes and have no way to reorder things at the moment.

Please implement ASAP! Thanks!

vmwxiong avatar Jun 23 '22 19:06 vmwxiong