IWithPointerDownAndUp

interface

An interface implemented by a webview if it supports PointerDown and PointerUp, which can be used to implement drag-and-drop interactions

Summary

Public methods

PointerDown

void PointerDown(Vector2 point)

Dispatches a "mouse down" click event. This can be used in conjunction with IWithMovablePointer.MovePointer and PointerUp to implement drag-and-drop interactions.

The x and y components of the point param are values between 0 and 1 that are normalized to the width and height, respectively. For example, point.x = x in Unity units / width in Unity units. Like in the browser, the origin is in the upper-left corner, the positive direction of the y-axis is down, and the positive direction of the x-axis is right.

PointerUp

void PointerUp(Vector2 point)

Dispatches a "mouse up" click event. This can be used in conjunction with PointerDown and IWithMovablePointer.MovePointer to implement drag-and-drop interactions.

The x and y components of the point param are values between 0 and 1 that are normalized to the width and height, respectively. For example, point.x = x in Unity units / width in Unity units. Like in the browser, the origin is in the upper-left corner, the positive direction of the y-axis is down, and the positive direction of the x-axis is right.