diff --git a/Runtime/Scripts/Layout/ContentScrollSnapHorizontal.cs b/Runtime/Scripts/Layout/ContentScrollSnapHorizontal.cs index 7a65c69..9b242c4 100644 --- a/Runtime/Scripts/Layout/ContentScrollSnapHorizontal.cs +++ b/Runtime/Scripts/Layout/ContentScrollSnapHorizontal.cs @@ -1,4 +1,8 @@ -using System.Collections; +/// Credit Beka Westberg +/// Sourced from - https://bitbucket.org/UnityUIExtensions/unity-ui-extensions/pull-requests/28 +/// Updated by SimonDarksideJ - Added some exception management and a SetNewItems to replace the content programmatically + +using System.Collections; using System.Collections.Generic; using UnityEngine.EventSystems; using UnityEngine.Events; @@ -185,11 +189,60 @@ namespace UnityEngine.UI.Extensions if (prevButton) prevButton.GetComponent