Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

AccessibilityRole.SearchField

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

The accessibility node behaves like a search field.


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 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.