SearchField
The accessibility node behaves like a search field.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Field
- Namespace: UnityEngine.Accessibility
- Assembly: UnityEngine.AccessibilityModule
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 _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 _focusChanged event to select the search field represented by the node when the user navigates to it, so that it can receive keyboard input.