A helper class to control paging of n number of elements in various situations.

namespace Sirenix.Utilities.Editor
public class GUIPagingHelper


Namespace: Sirenix.Utilities.Editor
Assembly: Sirenix.OdinInspector


Return Type Definition Description
bool IsExpanded Disables the paging, and show all elements.


Definition Description
GUIPagingHelper() Initializes a new instance of the GUIPagingHelper class.


Return Type Definition Description
int CurrentPage Gets or sets the current page.
int ElementCount Gets the total number of elements. Use Update(int) to change the value.
int EndIndex Gets the end index.
bool IsEnabled Gets or sets a value indicating whether this instance is enabled.
bool IsOnFirstPage Gets a value indicating whether this instance is on the frist page.
bool IsOnLastPage Gets a value indicating whether this instance is on the last page.
int NumberOfItemsPerPage Gets or sets the number of items per page.
int PageCount Gets or sets the page count.
int StartIndex Gets the start index.


Return Type Definition Description
void DrawToolbarPagingButtons(ref Rect, bool, bool, int) Draws right-aligned toolbar paging buttons.
void Update(int) Updates all values based on <paramref>(12748,8) and !:NumberOfItemsPrPage.