Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CapturePointer(IEventHandler, int)

Captures the pointer.
Read time 1 minuteLast updated 12 days ago

Definition

public static void CapturePointer(this IEventHandler handler, int pointerId)

Parameters

The VisualElement that captures the pointer.

pointerId

The pointer to capture.

Remarks

When a VisualElement captures a pointer, all pointer events are sent to the element, regardless of which element is under the pointer.