Inheritence

Summary

Base class for virtualized, scrollable panels that only create item panels when visible.

Constructors

BaseVirtualPanel Initializes the base virtual panel with default styles.

Fields

_cellData
_created
_items
_lastCellCreated
_removals

Properties

Item Template used to render an item into a cell panel.
ItemCount Gets the number of items in the panel.
Items Replaces the current items. Only triggers a rebuild if the sequence is actually different. When set to an IList (like List<T>), changes to the source list will be automatically detected.
NeedsRebuild When true, forces a layout rebuild on the next Sandbox.UI.BaseVirtualPanel.Tick.
OnCreateCell Called when a cell is created. Allows you to fill the cell in
OnLastCell Called when the last cell has been viewed. This allows you to view more.

Methods

AddItem Adds a single item and marks the panel for rebuild.
AddItems
Clear Clears all items and destroys created panels.
FinalLayoutChildren Final layout pass for child panels and scroll bounds.
GetTotalHeight Gets the total height needed to display the specified number of items.
GetVisibleRange Gets the range of visible item indices.
HasData Returns true if <paramref name="i" /> is a valid item index.
InsertItem Inserts an item at the specified index and marks the panel for rebuild.
PositionPanel Positions a panel at the specified index.
RemoveAt Removes the item at the specified index and marks the panel for rebuild.
RemoveItem Removes the first occurrence of a specific item and marks the panel for rebuild.
SetItems
Tick Per-frame update: adjusts spacing from CSS, updates layout, creates/destroys visible panels.
UpdateLayout Updates the layout and returns true if the layout changed.
UpdateLayoutSpacing Updates the layout spacing based on CSS gaps.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.