public static Vector2 BeginScrollView(SmartRect position, Vector2 scrollView, Rect viewRect, bool alwaysHorizontal, bool alwaysVertical, bool move = false) { scrollView = UGUI.BeginScrollView(position.ToRect(), scrollView, viewRect, alwaysHorizontal, alwaysVertical, Style.ScrollView, Style.ScrollView); if (move) { position.MoveY(); } return(scrollView); }
public static Vector2 BeginScrollView(Rect position, Vector2 scrollView, Rect viewRect, bool alwaysHorizontal, bool alwaysVertical) { return(UGUI.BeginScrollView(position, scrollView, viewRect, alwaysHorizontal, alwaysVertical, Style.ScrollView, Style.ScrollView)); }
public static Vector2 BeginScrollView(Rect position, Vector2 scrollView, Rect viewRect) { return(UGUI.BeginScrollView(position, scrollView, viewRect, Style.ScrollView, Style.ScrollView)); }