Catlike Coding
Unity Code Documentation
Public Member Functions | List of all members
CatlikeCoding.EventSystem.EventSystemTester Class Reference

Event system tester component. More...

Inherits MonoBehaviour, CatlikeCoding.EventSystem.IPointerEnterHandler, CatlikeCoding.EventSystem.IPointerExitHandler, CatlikeCoding.EventSystem.IPointerDownHandler, CatlikeCoding.EventSystem.IPointerUpHandler, CatlikeCoding.EventSystem.IPointerClickHandler, CatlikeCoding.EventSystem.IBeginDragHandler, CatlikeCoding.EventSystem.IDragHandler, and CatlikeCoding.EventSystem.IEndDragHandler.

Public Member Functions

void OnBeginDrag (PointerEventData eventData)
 Called on the same component that the pointer went down on, if a pointer move is detected before it goes up. More...
 
void OnDrag (PointerEventData eventData)
 Called on the same component that the pointer went down on, after OnBeginDrag each time a pointer move is detected before it goes up. More...
 
void OnEndDrag (PointerEventData eventData)
 Called on the same component that the pointer went down on, after OnBeginDrag after the pointer goes up. More...
 
void OnPointerClick (PointerEventData eventData)
 Called when the pointer went up on the same component that it went down on. More...
 
void OnPointerDown (PointerEventData eventData)
 Called when pointer went down on this component. More...
 
void OnPointerEnter (PointerEventData eventData)
 Called when the pointer entered this component. More...
 
void OnPointerExit (PointerEventData eventData)
 Called when the pointer exited this component. More...
 
void OnPointerUp (PointerEventData eventData)
 Called on the same component that the pointer went down on, after it went up. More...
 

Detailed Description

Event system tester component.

Can be used to understand how the event system works or check whether a custom input implementation works as expected.

Member Function Documentation

void CatlikeCoding.EventSystem.EventSystemTester.OnBeginDrag ( PointerEventData  eventData)

Called on the same component that the pointer went down on, if a pointer move is detected before it goes up.

Moves are only detected when on at least one component, but this could be any component.

Parameters
eventDataEvent data.

Implements CatlikeCoding.EventSystem.IBeginDragHandler.

void CatlikeCoding.EventSystem.EventSystemTester.OnDrag ( PointerEventData  eventData)

Called on the same component that the pointer went down on, after OnBeginDrag each time a pointer move is detected before it goes up.

Parameters
eventDataEvent data.

Implements CatlikeCoding.EventSystem.IDragHandler.

void CatlikeCoding.EventSystem.EventSystemTester.OnEndDrag ( PointerEventData  eventData)

Called on the same component that the pointer went down on, after OnBeginDrag after the pointer goes up.

Parameters
eventDataEvent data.

Implements CatlikeCoding.EventSystem.IEndDragHandler.

void CatlikeCoding.EventSystem.EventSystemTester.OnPointerClick ( PointerEventData  eventData)

Called when the pointer went up on the same component that it went down on.

Will be called after OnPointerUp.

Parameters
eventDataEvent data.

Implements CatlikeCoding.EventSystem.IPointerClickHandler.

void CatlikeCoding.EventSystem.EventSystemTester.OnPointerDown ( PointerEventData  eventData)

Called when pointer went down on this component.

Typically a mouse click or touch.

Parameters
eventDataEvent data.

Implements CatlikeCoding.EventSystem.IPointerDownHandler.

void CatlikeCoding.EventSystem.EventSystemTester.OnPointerEnter ( PointerEventData  eventData)

Called when the pointer entered this component.

Parameters
eventDataEvent data.

Implements CatlikeCoding.EventSystem.IPointerEnterHandler.

void CatlikeCoding.EventSystem.EventSystemTester.OnPointerExit ( PointerEventData  eventData)

Called when the pointer exited this component.

Parameters
eventDataEvent data.

Implements CatlikeCoding.EventSystem.IPointerExitHandler.

void CatlikeCoding.EventSystem.EventSystemTester.OnPointerUp ( PointerEventData  eventData)

Called on the same component that the pointer went down on, after it went up.

It's not called on the component that the pointer is currently on, if any.

Parameters
eventDataEvent data.

Implements CatlikeCoding.EventSystem.IPointerUpHandler.