編集

Share via


ScrollableListPopulator Class

Definition

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.

public ref class ScrollableListPopulator : UnityEngine::MonoBehaviour
[UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/ScrollableListPopulator")]
public class ScrollableListPopulator : UnityEngine.MonoBehaviour
[<UnityEngine.AddComponentMenu("Scripts/MRTK/Examples/ScrollableListPopulator")>]
type ScrollableListPopulator = class
    inherit MonoBehaviour
Public Class ScrollableListPopulator
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
ScrollableListPopulator
Attributes
UnityEngine.AddComponentMenuAttribute

Constructors

ScrollableListPopulator()

Properties

DynamicItem

Object to duplicate in ScrollView.

ItemsPerFrame

Number of items to load each frame during lazy load

LazyLoad

Demonstrate lazy loading

Loader

Indeterminate loader to hide / show for LazyLoad

NumItems

Number of items to generate

ScrollView

The ScrollingObjectCollection to populate, if left empty. the populator will create on your behalf.

Methods

MakeScrollingList()

Applies to