Skip to content
Version 2.11.0
↓ Get the launcher

VirtualListMath.FirstIndex method

First logical index to render given the vertical scroll offset (px from the top of the content), the fixed row height, the total logical count, and the rendered pool size. Clamped so the window [first, first+pool) never runs past the end (or below 0).

public static int FirstIndex(float scrollY, float rowHeight, int count, int poolSize)