Back to API Reference
Struct

RangeGestureContext

sealed

Borrowed input snapshot evaluated by a custom recognizer. A recognizer instance may serve multiple entities and pointers, so persistent state must be keyed by PointerId and Identity rather than stored as one implicit session.

public InteractiveRange Range{ get }

Concrete attributed range that received the original press.

public RangeGesturePhase Phase{ get }

Current gesture phase.

public PointerKind PointerKind{ get }

Physical pointer class.

public int PointerId{ get }

Platform pointer identity.

public Vector2 StartScreenPosition{ get }

Position at primary pointer down, in screen coordinates.

public Vector2 ScreenPosition{ get }

Current position in screen coordinates.

public Vector2 LocalPosition{ get }

Current position in UniText local coordinates.

public Vector2 Delta{ get }

Screen-space delta since the last delivered phase.

public Camera EventCamera{ get }

Camera associated with the current pointer event.

public PointerModifiers Modifiers{ get }

Keyboard modifiers held for the current pointer event.

public bool DragSlopExceeded{ get }

Whether travel from pointer down reached the configured drag slop.

public float Progress{ get }

Normalized built-in hold progress for LongPressProgress.

public float Timestamp{ get }

Current unscaled Unity time.