This repository has been archived on 2020-08-22. You can view files and clone it, but cannot push or open issues or pull requests.
flutter-unity-view-widget/example/Unity/Demo App/Library/PackageCache/com.unity.textmeshpro@1.3.0/Scripts/Runtime/TMP_ScrollbarEventHandler.cs

32 lines
713 B
C#

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;
}
}
}