Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TextField

The accessibility node behaves like a text field.
Read time 1 minuteLast updated 12 days ago

Definition

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.