Scripting API

ITextSelection

interface in UnityEngine.UIElements · UnityEngine.UIElementsModule

12 of 23 of Unity's membersUnity's documentation
In Tassix

A text input's selection: the cursor and the selection's other end, as character indices.

Properties 10

Color cursorColor { get; set; }
int cursorIndex { get; set; }
Vector2 cursorPosition { get; }
bool doubleClickSelectsWord { get; set; }
bool isSelectable { get; set; }
bool selectAllOnFocus { get; set; }
bool selectAllOnMouseUp { get; set; }
int selectIndex { get; set; }
Color selectionColor { get; set; }
bool tripleClickSelectsLine { get; set; }

Methods 4

bool HasSelection()
void SelectAll()
void SelectNone()
void SelectRange(int cursorIndex, int selectionIndex)

Not in Tassix yet 11

GetCursorPositionFromStringIndex MoveBackward MoveForward MoveToEndOfPreviousWord MoveToParagraphEnd MoveToParagraphStart MoveToStartOfNextWord MoveWordBackward MoveWordForward OnCursorIndexChange OnSelectIndexChange