文档

Unity Engine

Unity Engine

CapturePointer(IEventHandler, int)

Captures the pointer.
阅读时间1 分钟最后更新于 1 个月前

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.