This version of Unity is unsupported.
Experimental: this API is experimental and might be changed or removed in the future.

TextField.SelectRange

Declaration

public void SelectRange(int cursorIndex, int selectionIndex);

Parameters

cursorIndex The caret and selection start position.
selectionIndex The selection end position.

Description

Selects text in the textfield between cursorIndex and selectionIndex.