Search Feedback

26
votes

Move array elements in inspector

GUI

-

-

We should be able to move elements in arrays and lists in the inspector.

Comments (2)

  1. 4a4ece4a495aeb189e0c768e9706324d?d=mm

    EngineArtist

    Jul 10, 2018 18:05

    This, and other usability issues, will probably be improved sooner or later, but I thought I'd mention that even though it's a relatively minor inconvenience, having array-fields that are intuitive to use makes the editor a better tool. To offer design suggestions, here's how I think an array-field should behave:

    - There should be an Add-button (or plus) at the end for creating a new entry.
    - There should be a Delete-button (or minus) next to every entry.
    - Right-clicking an element should bring up a context-menu, including options to duplicate an element (this part exists already) and insert elements before or after the clicked element.
    - Elements should be reorderable by dragging.
    - Dragging in an element while holding CTRL should make a new element, instead of assigning an existing one. Handy for reference-types.

    In short, the array-field is one of the neglected parts of the editor that desperately needs a design pass. And by array I mean both arrays and lists obviously. Also Dictionary could use an inspector field, since that's currently missing completely.

  2. 7d86dbf5fee1f500c9888d878a217433?d=mm

    TaleOf4Gamers

    Feb 24, 2018 11:09

    Agreed, there is the ReorderableList when writing custom inspectors, but it really should be default for ALL inspectors without custom code.

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(10750)

2D

(281)

Ads

(54)

AI & Navigation

(81)

Analytics

(130)

Animation

(395)

Asset Store

(355)

Asset Store Publisher

(15)

Assets

(543)

Audio

(184)

Cloud Build

(144)

Collaborate

(63)

Docs & Tutorials

(239)

Editor

(2507)

Everyplay

(17)

Game Performance Reporting

(21)

General

(978)

Graphics

(869)

GUI

(430)

Input

(172)

Licensing

(90)

Networking

(188)

Physics

(383)

Platforms

(440)

Profiling & Optimization

(84)

Runtime

(181)

Scripting

(1168)

Terrain

(170)

WebGL

(142)