using Microsoft.MixedReality.Toolkit.UI; using UnityEngine; namespace WebViewStream { public class ScrollablePagination : MonoBehaviour { [SerializeField] private ScrollingObjectCollection scrollView; /// /// Scrolls the collection by a specified amount. /// /// public void ScrollByTier(int amount) { if (scrollView == null) { Debug.LogError("ScrollingObjectCollection is not set."); return; } scrollView.MoveByTiers(amount); } } }