Class ScrollableListPopulator
Simple demonstration of how to instantiate a ScrollingObjectCollection as well as use lazy loading to mitigate the perf cost of a large list of items.
Namespace: Microsoft.MixedReality.Toolkit.Experimental.Examples
Assembly: cs.temp.dll.dll
Syntax
public class ScrollableListPopulator : MonoBehaviour
Properties
DynamicItem
Object to duplicate in ScrollCollection.
Declaration
public GameObject DynamicItem { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
ItemsPerFrame
Number of items to load each frame during lazy load
Declaration
public int ItemsPerFrame { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
LazyLoad
Demonstrate lazy loading
Declaration
public bool LazyLoad { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Loader
Indeterminate loader to hide / show for LazyLoad
Declaration
public GameObject Loader { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
NumItems
Number of items to generate
Declaration
public int NumItems { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
ScrollCollection
The ScrollingObjectCollection to populate, if left empty. the populator will create on your behalf.
Declaration
public ScrollingObjectCollection ScrollCollection { get; set; }
Property Value
Type | Description |
---|---|
ScrollingObjectCollection |
Methods
MakeScrollingList()
Declaration
public void MakeScrollingList()