using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEngine.UI; namespace MoreMountains.Tools { /// /// Scrollrect extensions /// public static class ScrollRectExtensions { /// /// Scrolls a scroll rect to the top /// /// public static void MMScrollToTop(this ScrollRect scrollRect) { scrollRect.normalizedPosition = new Vector2(0, 1); } /// /// Scrolls a scroll rect to the bottom /// public static void MMScrollToBottom(this ScrollRect scrollRect) { scrollRect.normalizedPosition = new Vector2(0, 0); } } }