You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
713 B
31 lines
713 B
using UnityEngine; |
|
using UnityEngine.Events; |
|
using UnityEngine.EventSystems; |
|
using System; |
|
|
|
|
|
namespace TMPro |
|
{ |
|
|
|
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; |
|
} |
|
} |
|
}
|
|
|