ReorderableInspector icon indicating copy to clipboard operation
ReorderableInspector copied to clipboard

Stops working after x items...

Open rakkarage opened this issue 5 years ago • 1 comments

untitled

seems to stop working after around 10 items? or

huh

Example: https://github.com/rakkarage/TestReorderableInspectorNew

edit: after more editing i got my code under the limit maybe it is just a reasonable limitation by unity or ri

rakkarage avatar Mar 05 '19 00:03 rakkarage

The problem is in ReorderableArrayInspector.cs script, at line 671: listData = listIndex.Find(data => property.propertyPath.StartsWith(data.Parent)); The StartsWith(data.Parent)) part of it caused in my and your case to fail rendering correctly the list because it was searching for "Floor Room" and "Floor Simple" and finding just "Floor" in your case, because they both starts with "Floor".

I have solved it by replacing the code with this: listData = listIndex.Find(data => property.propertyPath.StartsWith(data.Parent + ".") || property.propertyPath == data.Parent);

Xriuk avatar Dec 05 '20 20:12 Xriuk