com.unity.uiextensions/Examples/FancyScrollView/03_InfiniteScroll/Example03Scene.cs

20 lines
440 B
C#
Raw Normal View History

using System.Linq;
namespace UnityEngine.UI.Extensions.Examples
{
public class Example03Scene : MonoBehaviour
{
[SerializeField]
Example03ScrollView scrollView;
void Start()
{
var cellData = Enumerable.Range(0, 20)
.Select(i => new Example03CellDto { Message = "Cell " + i })
.ToList();
scrollView.UpdateData(cellData);
}
}
}