Answer the question
In order to leave comments, you need to log in
How to make the right mouse button work in IDragHandler, IEndDragHandler, etc.?
I connected means IBeginDragHandler, IDragHandler, IEndDragHandler and implemented the interface of each of them in this way
public void OnBeginDrag(PointerEventData eventData)
{
Debug.Log(eventData.hovered.Count);
}
public void OnDrag(PointerEventData eventData)
{
Debug.Log(eventData.hovered.Count);
}
public void OnEndDrag(PointerEventData eventData)
{
Debug.Log(eventData.hovered.Count);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question