Scripting API

TextInputBaseField<TValueType>

class in UnityEngine.UIElements · UnityEngine.CoreModule · inherits from BaseField<TValueType>

Not in Unity's public API, or in an assembly the coverage doesn't count.
In Tassix

A field edited as text: a TextElement inside the input showing the text (masked for passwords), a caret and selection drawn over it. Focused, it takes typed characters and the editing keys (arrows, Home, End, Backspace, Delete, with Shift to select; Ctrl+A, C, X, V); clicking places the caret, dragging selects. The value follows the text as it changes, or when focus leaves (isDelayed).

Fields 7

static readonly string inputUssClassName
static readonly string labelUssClassName
static readonly string multilineInputUssClassName
static readonly string placeholderUssClassName
static readonly string singleLineInputUssClassName
static readonly string textInputUssName
static readonly string ussClassName

Properties 21

bool autoCorrection { get; set; }
Color cursorColor { get; set; }
int cursorIndex { get; set; }
Vector2 cursorPosition { get; }
bool doubleClickSelectsWord { get; set; }
bool hideMobileInput { get; set; }
bool isDelayed { get; set; }
bool isPasswordField { get; set; }
bool isReadOnly { get; set; }
bool isSelectable { get; set; }
TouchScreenKeyboardType keyboardType { get; set; }
char maskChar { get; set; }
int maxLength { get; set; }

The most characters the text holds: a shorter limit cuts the text (and says so with a ChangeEvent, the value itself unchanged, as Unity does).

bool selectAllOnFocus { get; set; }
bool selectAllOnMouseUp { get; set; }
int selectIndex { get; set; }
Color selectionColor { get; set; }
string text { get; }
ITextSelection textSelection { get; }
bool tripleClickSelectsLine { get; set; }
ScrollerVisibility verticalScrollerVisibility { get; set; }

Methods 5

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