From 0bf3095a7450b4af6787c2c569a9a9b25118bbcc Mon Sep 17 00:00:00 2001 From: Neil Sarkar Date: Thu, 20 Aug 2020 17:26:25 -0700 Subject: [PATCH] Revert child index change for inline prefab --- Runtime/Views/ChildView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }