Implement on your component to receive input events via the EventSystem component

interface IPointerEventHandler {
    onPointerClick?(args: PointerEventData): any;
    onPointerDown?(args: PointerEventData): any;
    onPointerEnter?(args: PointerEventData): any;
    onPointerExit?(args: PointerEventData): any;
    onPointerMove?(args: PointerEventData): any;
    onPointerUp?(args: PointerEventData): any;
}

Hierarchy (view full)

Implemented by

Methods

  • Called when a pointer (mouse, touch, xr controller) exists an object (it was hovering the object before but now it's not anymore)

    Parameters

    Returns any