public void UpdateScroll() { HandleScrollInput(); var scrollVelocitySign = Mathf.Sign(scrollVelocity); scrollVelocity = scrollVelocitySign * Mathf.Max(0, Mathf.Abs(scrollVelocity) - scrollFrameDecay); scrollY += scrollVelocity; TrimScroll(); TrimScrollVelocity(); var rootRT = RootContainer.GetComponent <RectTransform>(); rootRT.anchoredPosition = new Vector2(0, scrollY); }