Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SearchField

The accessibility node behaves like a search field.
Read time 1 minuteLast updated 13 days ago

Definition

SearchField = 4

Remarks

Platform-specific behavior
  • Android: This role does not affect the node's announcement but provides the screen reader with semantic information about the node.
  • iOS: If this role is set on a node, the screen reader announces the node as a "search field".
  • macOS: If this role is set on a node, the screen reader announces the node as a "search text field".
  • Windows: If this role is set on a node, the screen reader announces the node as "edit". The resulting behavior of this role is identical to that of AccessibilityRole.TextField.
On Android, subscribe to the AccessibilityNode.invoked event to put the search field into edit mode when the user activates it, so that it can receive hardware keyboard input.
On Windows and macOS, subscribe to the AccessibilityNode.focusChanged event to select the search field represented by the node when the user navigates to it, so that it can receive keyboard input.