Tanoda
ScrollRectExtensions.cs
Go to the documentation of this file.
1
3
5{
6 public static class ScrollRectExtensions
7 {
8 public static void ScrollToTop(this ScrollRect scrollRect)
9 {
10 scrollRect.normalizedPosition = new Vector2(0, 1);
11 }
12 public static void ScrollToBottom(this ScrollRect scrollRect)
13 {
14 scrollRect.normalizedPosition = new Vector2(0, 0);
15 }
16 }
17}
Credit Erdener Gonenc - @PixelEnvision.