diff --git a/Runtime/Views/ChildView.cs b/Runtime/Views/ChildView.cs index 860897b..4993178 100644 --- a/Runtime/Views/ChildView.cs +++ b/Runtime/Views/ChildView.cs @@ -48,7 +48,7 @@ int GetIndex() { while(t.parent != null) { if (t.parent.GetComponent>() != null) { // account for the first item being the prefab - return Math.Max(0, t.GetSiblingIndex()-1); + return Math.Max(0, t.GetSiblingIndex()); } t = t.parent; }