Question : unity scroll rect to bottom
Answered by : jess-angarita
using UnityEngine;
using UnityEngine.UI;
public static class ScrollRectExtensions
{ public static void ScrollToTop(this ScrollRect scrollRect) { scrollRect.normalizedPosition = new Vector2(0, 1); } public static void ScrollToBottom(this ScrollRect scrollRect) { scrollRect.normalizedPosition = new Vector2(0, 0); }
}
Source : https://forum.unity.com/threads/scroll-to-the-bottom-of-a-scrollrect-in-code.310919/ | Last Update : Wed, 22 Jun 22