AccessibilityState
Options for defining the state of an AccessibilityNode to screen readers.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.Accessibility
- Assembly: UnityEngine.AccessibilityModule
[Flags]public enum AccessibilityState : byte
Remarks
You can use the values in this enumeration to set the _state. This property enables screen readers to describe the state of interactive elements, such as whether a checkbox is checked or whether a button is disabled.
If the visual element that the node represents has a state that is not represented by an enumeration option, use the default value, AccessibilityState.None, and provide information about the node's current state in properties such as the _value and _hint.
Additional Resources:
Fields
Value | Description |
|---|---|
| Disabled | The visual element represented by the accessibility node is currently disabled and does not respond to user interaction. |
| Expanded | The visual element represented by the accessibility node is currently expanded, such as an expanded dropdown list or menu. |
| None | The accessibility node is not in a predefined state. |
| Selected | The visual element represented by the accessibility node is currently selected, such as a selected table row or a selected button in a segmented control. |