Catlike Coding
Unity Code Documentation
CatlikeCoding.EventSystem.IEventSystemHandler Interface Reference

Marker interface, to indicate that a component handles system events. More...

Inherited by CatlikeCoding.EventSystem.IBeginDragHandler, CatlikeCoding.EventSystem.IDragHandler, CatlikeCoding.EventSystem.IEndDragHandler, CatlikeCoding.EventSystem.IPointerClickHandler, CatlikeCoding.EventSystem.IPointerDownHandler, CatlikeCoding.EventSystem.IPointerEnterHandler, CatlikeCoding.EventSystem.IPointerExitHandler, and CatlikeCoding.EventSystem.IPointerUpHandler.

Detailed Description

Marker interface, to indicate that a component handles system events.

This event system is kept as simple as possible and is designed to support a subset of what Unity 4.6 would probably define. This is based on what was shared by Unity developers on the Unity community forums.

The complete sequence of supported events is OnPointerEnter, OnPointerDown, OnBeginDrag, OnDrag, OnPointerUp, OnEndDrag, OnClick, OnPointerExit. While dragging, you could leave and enter other objects, so multiple OnPointerExit and OnPointerEnter events could happen during that sequence. Also, when OnPointerUp happens while not on the original component or on no component at all, OnClick won't happen.