com.unity.uiextensions.nosa.../Examples/FancyScrollView/02_CellEventHandling/Example02Scene.cs

20 lines
447 B
C#

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