WebViewPrefab.SetPointerInputDetector()
or CanvasWebViewPrefab.SetPointerInputDetector()
to override how the prefab detects pointer input. For example implementations of this interface, please see 3D WebView's DefaultPointerInputDetector.cs and CanvasPointerInputDetector.cs scripts. bool PointerMovedEnabled
The prefab sets this property to indicate whether the PointerMoved
event should be enabled.
EventHandler<EventArgs<Vector2>> BeganDrag
Indicates the beginning of a drag interaction.
The EventArgs
indicate the normalized point of the interaction, where the x
and y
components are values between 0 and 1 that are normalized to the width and height, respectively.
EventHandler<EventArgs<Vector2>> Dragged
Indicates the continuation of a drag interaction.
The EventArgs
indicate the normalized point of the interaction, where the x
and y
components are values between 0 and 1 that are normalized to the width and height, respectively.
EventHandler<PointerEventArgs> PointerDown
Indicates a pointer down interaction occurred.
EventHandler<EventArgs<Vector2>> PointerMoved
Indicates that the pointer moved.
The EventArgs
indicate the normalized point of the interaction, where the x
and y
components are values between 0 and 1 that are normalized to the width and height, respectively.