Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feedback EventSystems: We need a IPointerMovedHandler (like IDragHandler but not for dragging)

Discussion in 'UGUI & TextMesh Pro' started by jashan, Feb 11, 2020.

  1. jashan


    Mar 9, 2007
    I may be missing something but it seems like I just ran into a pretty severe limitation of the current event system used by Unity UI: We need a UI-component to get the current position of the pointer (touch, mouse, VR laser pointer, whatever) each frame while the UI-component is being pointed at.

    At first, I thought IMoveHandler was what I needed - but that one's apparently for gamepad / cursor key selection movement.

    It seems that IDragHandler is almost exactly what is needed - except IDragHandler is for dragging, i.e. movement while a button is pressed (I guess with touch interfaces, that's the only way - but touch interfaces are the only interfaces behaving like that).

    So apparently, there currently is no way to get the current position of the pointer on the UI component. Is that correct? If so, can we get this added?
    Mochnant likes this.