You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
523 B
26 lines
523 B
using UnityEngine; |
|
using System.Collections; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using UIWidgets; |
|
|
|
namespace UIWidgetsSamples { |
|
|
|
public class TestListViewSlider : MonoBehaviour { |
|
[SerializeField] |
|
ListViewSlider ListView; |
|
|
|
public void SetList() |
|
{ |
|
var data = new ObservableList<ListViewSliderItem>(); |
|
|
|
foreach (var i in Enumerable.Range(0, 100)) |
|
{ |
|
data.Add(new ListViewSliderItem(){Value = i}); |
|
data[i].Value = Random.Range(0, 100); |
|
} |
|
|
|
ListView.DataSource = data; |
|
} |
|
} |
|
} |