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

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

Hierarchy

  • IPointerDownHandler
  • IPointerUpHandler
  • IPointerEnterHandler
  • IPointerMoveHandler
  • IPointerExitHandler
  • IPointerClickHandler
    • IPointerEventHandler

Implemented by

Methods

  • Called when an object (or any child object) is clicked (needs a EventSystem in the scene)

    Parameters

    Returns any

  • Called when a button is started to being pressed on an object (or a child object)

    Parameters

    Returns any

  • Called when a pointer (mouse, touch, xr controller) starts pointing on/hovering an object (or a child object)

    Parameters

    Returns any

  • 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

  • Called when a pointer (mouse, touch, xr controller) is moving over an object (or a child object)

    Parameters

    Returns any

  • Called when a button is released (which was previously pressed in onPointerDown)

    Parameters

    Returns any

Generated using TypeDoc