Docsv3.31.0
Back to API Reference
Class

PrefabSelectionHandles

sealed

Presents the Unity-UI selection and insertion handles from a prefab shared through the touch overlay: its own prefab or, while that is empty, the project default (UniTextSettings.SelectionHandlesPrefab). The managed entity remains owned by one selectable while the prefab instance is resolved lazily and can be shared by multiple fields.

public UniTextSelectionHandles Prefab{ get; set }

Unity-UI presentation prefab resolved through the shared touch overlay; empty presents the project default.

protected override void OnAttach()
protected override void OnDetach()
public Action<Vector2> AnchorDragged

Occurs when the user is dragging the anchor handle. The parameter is the drag position in screen coordinates, to be hit-tested into the new anchor codepoint.

public Action<Vector2> FocusDragged

Occurs when the user is dragging the focus handle. The parameter is the drag position in screen coordinates, to be hit-tested into the new focus codepoint.

public Action SelectionHandleDragStarted

Occurs when a selection-handle drag begins (either handle) — a cue to hide transient UI such as the context menu for the duration of the drag.

public Action SelectionHandleDragEnded

Occurs when a selection-handle drag ends (either handle).

public Action<Vector2> InsertionHandleDragged

Occurs when the user is dragging the insertion handle. The parameter is the drag position in screen coordinates, to be hit-tested into the new caret codepoint.

public Action InsertionHandleTapped

Occurs when the user has tapped the insertion handle (requests the context menu).

public Action InsertionHandleDragStarted

Occurs when an insertion-handle drag begins — a cue to hide transient UI such as the context menu for the duration of the drag.

public Action InsertionHandleDragEnded

Occurs when an insertion-handle drag has ended (confirms placement).