I am not able to order array/list elements in inspector using 2022.3. The list appears like this without the Move handles.
for basic array
public GroupSpec[] groups;
I have another project using 2021.3. And it works there. I searched for what might have changed between versions or different about projects, but can’t find out. It should be reorderable by default according to the doc. Any help appreciated!
Did you try selecting the elements and dragging them around anyway?
Yes I tried. It doesn’t work. Also note that it doesn’t have the plus/minus buttons in the inspector. I can’t drag and drop item onto the list to add. I am having to set the size in order to add items.
Is your inspector in debug mode?
It’s in Normal mode.
I created a blank project to test and it works there. So it’s something about this other project, but I don’t know what to look for. The project uses many store assets. Not sure if possible one of them modified the inspector somehow.
I also searched for [NonReorderable] attributes and tried to remove those.
It works in Debug Mode! That’s weird. It’s a workaround at least. Does this mean something has modified the inspector in Normal mode?
It’s definitely possible that one or more assets you have in your project could be messing with the inspector, particularly if this is happening in all instances of serialised collections.
Might be a case of cutting the project in half and see if it persists, so on and so forth.
I am experiencing a similar situation in 2023.2.15f1. It is slightly different, in that I do see the handles, but they just don’t work for reordering. But the workaround of switching to debug mode does work, so thanks for the tip! My case could also maybe be caused by some asset or plugin.