Files
cloud-mainworld/ufm cloud/Library/PackageCache/com.unity.ugui@a4256ae5f4a6/Runtime/TMP/TMP_ScrollbarEventHandler.cs
T

32 lines
738 B
C#
Raw Normal View History

2026-10-21 20:45:23 +01:00
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;
using System;
namespace TMPro
{
2026-11-30 19:13:17 +00:00
[TMPHelpURL("index")]
2026-10-21 20:45:23 +01:00
public class TMP_ScrollbarEventHandler : MonoBehaviour, IPointerClickHandler, ISelectHandler, IDeselectHandler
{
public bool isSelected;
public void OnPointerClick(PointerEventData eventData)
{
Debug.Log("Scrollbar click...");
}
public void OnSelect(BaseEventData eventData)
{
Debug.Log("Scrollbar selected");
isSelected = true;
}
public void OnDeselect(BaseEventData eventData)
{
Debug.Log("Scrollbar De-Selected");
isSelected = false;
}
}
}