IPointerInputDetector

interface

An interface that can be passed to 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.

Summary

Public properties

Public properties

PointerMovedEnabled

bool PointerMovedEnabled

The prefab sets this property to indicate whether the PointerMoved event should be enabled.

Public events

BeganDrag

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.

Dragged

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.

PointerDown

EventHandler<EventArgs<Vector2>> PointerDown

Indicates a pointer down interaction occurred.

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.

PointerExited

EventHandler PointerExited

Indicates that the pointer exited.

PointerMoved

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.

PointerUp

EventHandler<EventArgs<Vector2>> PointerUp

Indicates a pointer up interaction occurred.

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.

Scrolled

EventHandler<ScrolledEventArgs> Scrolled

Indicates a scroll interaction occurred.