arimger/Unity-Editor-Toolbox

ReorderableListAttribute visual bug

uurha opened this issue · 6 comments

uurha commented

Hi~
I found out that items count in ReorderableListAttribute Any Style is so small. Could you please change it to be as usual list?
image

UnityEditor: 2021.2.8f1

Hello,

it's supposed to look like that. The old, default ReorderableList does not have size property at all. Honestly, I like the current version and see no reason why this should be changed. Is it too small for you or do you have too many items and the field is too small?

uurha commented

Hello)
Yes, numbers with three digits are not visible. And in case of 10+ items collapse control needed because it's need to scroll much.

uurha commented

May be it's possible to make some settings in EditorToolBoxSettings to display size and collapse controls same as Unity default style?

image
image
You can make ReorderableList collapsible just like that:

[ReorderableList(ListStyle.Round, elementLabel: "GameObject", Foldable = true)]

Anyway, I suggest not using ReorderableListAttribute for larger collections, a much better option is using ScrollableItemsAttribute for this use case.

About the size property - I will resize the related field depending on the current items count.

uurha commented

You can make ReorderableList collapsible just like that:

[ReorderableList(ListStyle.Round, elementLabel: "GameObject", Foldable = true)]

Anyway, I suggest not using ReorderableListAttribute for larger collections, a much better option is using ScrollableItemsAttribute for this use case.

Oh, thanks for explaining. I thought that ScrollableItemsAttribute for other purposes.

About the size property - I will resize the related field depending on the current items count.

Thanks a lot <3

Fixed here.