using UnityEngine; using System.Collections.Generic; namespace UnityEngine.UI.Extensions.Examples { public class Example01ScrollView : FancyScrollView { [SerializeField] ScrollPositionController scrollPositionController; void Awake() { scrollPositionController.OnUpdatePosition(p => UpdatePosition(p)); } public void UpdateData(List data) { cellData = data; scrollPositionController.SetDataCount(cellData.Count); UpdateContents(); } } }