20 lines
425 B
C#
20 lines
425 B
C#
using Microsoft.MixedReality.Toolkit.UI;
|
|
using UnityEngine;
|
|
|
|
public class ScrollablePagination : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
private ScrollingObjectCollection scrollView;
|
|
|
|
public void ScrollByTier(int amount)
|
|
{
|
|
if (scrollView == null)
|
|
{
|
|
Debug.LogError("ScrollingObjectCollection is not set.");
|
|
return;
|
|
}
|
|
|
|
scrollView.MoveByTiers(amount);
|
|
}
|
|
}
|