OnPointerMove?

I need to resize child transform that is created on Canvas in its OnPointerDown event but I don’t see coresponding function for that. I tried OnMove from IMoveHandler but it doesn’t fire.
I was thinking about saving handle to child in OnPointerDown and then update size in Update but this could get messy if for some reason OnPointerUp is not called later.
Any ideas?

drag maybe?

public class Test : MonoBehaviour, IBeginDragHandler, IEndDragHandler, IDragHandler
{
        public void OnBeginDrag(PointerEventData e)
        public void OnDrag(PointerEventData e)
        public void OnEndDrag(PointerEventData e)
        ...
}

yea, OnDrag did the trick
thanks

Hi anyone know’s how PointerEventData and OnPointerEnter works Code examples plz will halp a lot tnx.

this.GetComponent().OnPointerEnter(“PointerEventData” How the heck can i do this ??? );

You don’t call this method directly, the EventSystem does it for you when the mouse enters the object.

you need to add proper interface to your script class declaration - in this case IPointerEnterHandler and then implement OnPointerEnter(PointerEventData eventData) in script body. eventData will hold stuff you need to get pointer position etc