Paginate Array

Callable
PaginateArray

Calculates the start index, end index, and total page count for paginating any array by item count. Works with any array type.

Type: Callable (has execution pins)
Category: Fortuna|UMG/UI Helpers
Keywords: umg/ui helpers

Inputs

NameTypeDefaultDescription
TotalItemsint32TotalItems parameter
PageSizeint32PageSize parameter
PageIndexint32PageIndex parameter

Outputs

NameTypeDescription
OutStartIndexint32OutStartIndex output
OutEndIndexint32OutEndIndex output
OutTotalPagesint32OutTotalPages output

Example Use Cases

Example 1

Page through a Blueprint array without converting it to strings first.

Example 2

Compute UI slot ranges for an inventory grid with pages.