TextField
The accessibility node behaves like a text field.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Field
- Namespace: UnityEngine.Accessibility
- Assembly: UnityEngine.AccessibilityModule
TextField = 11
Remarks
Platform-specific behavior
-
Android: If this role is set on a node, the screen reader announces the node as an "edit box".
-
iOS: This role has no effect.
-
macOS: If this role is set on a node, the screen reader announces the node as a "text".
-
Windows: If this role is set on a node, the screen reader announces the node as "edit".
On Android, subscribe to the _invoked event to put the text field into edit mode when the user activates it, so that it can receive hardware keyboard input.
On Windows and macOS, subscribe to the _focusChanged event to select the text field represented by the node when the user navigates to it, so that it can receive keyboard input.