VirtualListElement.VariableHeight property
Opt into VARIABLE-height rows: each pooled slot is MEASURED (uGUI preferred height, exactly as a BubbleElement/ContentSizeFitter fits itself) after it is bound to a data index, and the list keeps a per-index height model + cumulative offsets instead of assuming uniform rows. Un-measured rows use RowHeight as a baseline estimate (a running average of the measured rows once any exist), so the scrollbar is approximately right immediately and refines as rows scroll into view. Positioning uses the cumulative offsets; the content height is derived from the model. Default false = the original uniform path, byte-identical for existing consumers. The pool must still be sized to cover the viewport (≈ viewport ÷ the SHORTEST row + a buffer) — a pool smaller than the on-screen row count leaves a gap, same as the uniform list. An init property (not a ctor param) so the record stays binary-compatible.
public bool VariableHeight { get; set; }See Also
Section titled “See Also”- record VirtualListElement
- namespace Stellar.Abstractions.Services