Paginator
Important
ScrollRect.Content anchors should at the top left corner.
How to select paginator
If you need paginator for the TextMeshPro text with
Overflow=PageuseTextMeshProPaginatorIf you need paginator with fixed items quantity per page use
ListViewPaginator.If you need paginator where the page size is equal
ScrollRectsize useScrollRectPaginator. AddTileViewScrollRectFitterif you also need the whole number of items on one page.Use ScrollRectPaginator for any
ScrollRectoutside ListView, TileView etc.
Common Options
Interactable
boolAllow users interact with the Paginator.
View
PaginatorViewDefault Page
ScrollRectPageoptionalTemplate GameObject to display inactive pages.
Active Page
ScrollRectPageoptionalTemplate GameObject to display active page.
Prev Page
ScrollRectPageoptionalGameObject, go to the previous page.
Next Page
ScrollRectPageoptionalGameObject, go to the next page.
Skip Page
RectTransformoptionalTemplate to display skipped pages.
Pages Container
RectTransformoptionalContainer for the created
Default Pageinstances.HideIfOnePage
boolHide active page if has only one page.
Visible Pages Count
intNumber of visible page buttons.The first and last page buttons are always shown.Set to 0 to display buttons for all pages.
Common Events
OnPageSelect
UnityEvent<int>
ScrollRectPaginator Options
ScrollRect
ScrollRectScrollRect to work with.
Direction
PaginatorDirectionScroll direction.
Autodetect direction by ScrollRect settings and ScrollRect.content size.Horizontalscroll in the horizontal directionVerticalscroll in the vertical direction
Fast Drag Distance
floatScroll to the next or previous page if drag distance more than Fast Drag Distance and drag time less than Fast Drag Time. Set zero to disable.
Fast Drag Time
floatScroll to the next or previous page if drag distance more than Fast Drag Distance and drag time less than Fast Drag Time. Set zero to disable.
Current Page
intDefault page.
Forced Position
PaginatorPagePositionAutomatically scroll to the nearest page after drag ended if not meet Fast Drag condition.
Noneautomatical scroll disabledOnStartautomatical scroll enabled; page aligned by the left side of the ScrollRect (or the top side if scroll in the vertical direction)OnCenterautomatical scroll enabled; page aligned by the center side of the ScrollRectOnEndautomatical scroll enabled; page aligned by the right side of the ScrollRect (or the bottom side if scroll in the vertical direction)
Last Page Full Size
boolChange the last page size to full-page size.
Page Rounding
PaginatorRoundingFloor
Round
Ceil
Animation
boolEnable animation.
Page Size Type
PageSizeTypeIf Page Size Type = Auto page size is equal to scroll rect size, if Page Size Type = Fixed will be used Page Size value.
AutoFixed
Page Size
floatSize of the page.
Page Spacing
floatSpace between pages.
Movement
AnimationCurveAnimation curve.
Unscaled Time
boolRun animation with unscaled time.
ListViewPaginator Options
List View
ListViewBasePer Page
intItems count on one page, for TileView this is rows or columns count per page.
Fast Drag Distance
floatScroll to the next or previous page if drag distance more than Fast Drag Distance and drag time less than Fast Drag Time. Set zero to disable.
Fast Drag Time
floatScroll to the next or previous page if drag distance more than Fast Drag Distance and drag time less than Fast Drag Time. Set zero to disable.
Current Page
intDefault page.
Forced Position
PaginatorPagePositionAutomatically scroll to the nearest page after drag ended if not meet Fast Drag condition.
Noneautomatical scroll disabledOnStartautomatical scroll enabled; page aligned by the left side of the ScrollRect (or the top side if scroll in the vertical direction)OnCenterautomatical scroll enabled; page aligned by the center side of the ScrollRectOnEndautomatical scroll enabled; page aligned by the right side of the ScrollRect (or the bottom side if scroll in the vertical direction)
Last Page Full Size
boolChange the last page size to full-page size.
Page Rounding
PaginatorRoundingFloor
Round
Ceil
Animation
boolEnable animation.
ListViewPaginator works with ListView, TileView (in this case PerPage is rows or columns count) and TreeView. ListView animation settings used if animation enabled.
Animation
Animation work with AnimationCurve.
Width is the length of the animation in seconds; height is a relative distance (0 is start position; 1 is end position).
ScrollRectPaginator use own Movement field.
ListViewPaginator uses ListView.ScrollMovement field.
Tile View ScrollRect Fitter
Component to resize ListView.ScrollRect to fit the whole number of columns and rows.