public override void OnPointerDown(PointerEventData eventData) { if (isInteractable) { scrollGroup.SelectUIItem(ItemIndex); } }
public virtual void TrySelectFirstAvailable() { PLEUIItem firstAvailable = scrollGroup.TryGetFirstAvailableUIItem(); if (firstAvailable) { selectedPreviewImage.sprite = firstAvailable.imagePreview.sprite; scrollGroup.SelectUIItem(firstAvailable.ItemIndex, false); } }