Skip to content

Stops working after x items... #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rakkarage opened this issue Mar 5, 2019 · 1 comment
Open

Stops working after x items... #16

rakkarage opened this issue Mar 5, 2019 · 1 comment

Comments

@rakkarage
Copy link

rakkarage commented Mar 5, 2019

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

@Xriuk
Copy link

Xriuk commented Dec 5, 2020

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants