From adb09d3481dcc4e1aad25a972590d6ac41661c68 Mon Sep 17 00:00:00 2001 From: Simon Jackson Date: Mon, 7 Aug 2017 11:56:41 +0100 Subject: [PATCH] Also added "InitialiseChildObjectsFromScene" to RemoveChild for HSS Validated all other occurrences where this function should be called are valid. --- Scripts/Layout/HorizontalScrollSnap.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Layout/HorizontalScrollSnap.cs b/Scripts/Layout/HorizontalScrollSnap.cs index 03aba1c..f241dc5 100644 --- a/Scripts/Layout/HorizontalScrollSnap.cs +++ b/Scripts/Layout/HorizontalScrollSnap.cs @@ -146,7 +146,7 @@ namespace UnityEngine.UI.Extensions Transform child = _screensContainer.transform.GetChild(index); child.SetParent(null, WorldPositionStays); ChildRemoved = child.gameObject; - + InitialiseChildObjectsFromScene(); DistributePages(); if (MaskArea) UpdateVisible();