示例#1
0
        public static IEnumerator ScrollToPositionNextFrame(this ScrollRect scroller, float normalizePosition)
        {
            // wait one frame to let content to calculate it's size
            yield return(new WaitForEndOfFrame());

            scroller.ScrollToPosition(normalizePosition);
        }