BaseVerticalCollectionView
Creates a BaseVerticalCollectionView with all default properties. The _itemsSource must all be set for the BaseVerticalCollectionView to function properly.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Constructor
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
BaseVerticalCollectionView()
Creates a BaseVerticalCollectionView with all default properties. The _itemsSource must all be set for the BaseVerticalCollectionView to function properly.
public BaseVerticalCollectionView()
BaseVerticalCollectionView(IList, float)
Constructs a BaseVerticalCollectionView, with all required properties provided.
public BaseVerticalCollectionView(IList itemsSource, float itemHeight = -1)
Parameters
BaseVerticalCollectionView(IList, float, Func<VisualElement>, Action<VisualElement, int>)
public BaseVerticalCollectionView(IList itemsSource, float itemHeight = -1, Func<VisualElement> makeItem = null, Action<VisualElement, int> bindItem = null)
Parameters
The list of items to use as a data source.
The height of each item, in pixels. For virtualization only.
FixedHeightThe factory method to call to create a display item. The method should return a VisualElement that can be bound to a data item.
The method to call to bind a data item to a display item. The method receives as parameters the display item to bind, and the index of the data item to bind it to.