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

21 lines
466 B
C#

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