AssistiveSupport
Access point to APIs that enable applications made with Unity to support assistive technologies.
Read time 2 minutesLast updated 10 days ago
Definition
- Type: Class
- Namespace: UnityEngine.Accessibility
- Assembly: UnityEngine.AccessibilityModule
public static class AssistiveSupport
Remarks
By default, applications made with Unity are incompatible with screen readers because they use Unityʼs own UI systems, which are not accessible to assistive technologies. This means that while the screen reader is on, it is impossible to interact with a Unity application.
You can use this class, along with AccessibilityHierarchy and AccessibilityNode, to make your Unity application natively communicate with and send necessary information to screen readers.
These APIs are currently supported on the following platforms:
-
RuntimePlatform.Android - starting with Android 8.0 (API level 26)
Note: These APIs might result in slight behavior differences across platforms. However, they are consistent with the behavior of native user interfaces on each platform and conform to user expectations. Their behavior might not be identical to native user interfaces, but it is a close replica. APIs that behave differently across platforms have those differences described in their documentation.
Additional Resources:
Static Properties
Property | Description |
|---|---|
| activeHierarchy | The accessibility hierarchy that is currently accessible to screen readers. |
| isScreenReaderEnabled | Whether the screen reader is turned on or off on the user's device. |
| notificationDispatcher | Service used to send accessibility notifications to the screen reader. |
| screenReaderStatusOverride | Whether to override the screen reader status given by the operating system. |
Static Events
Member | Description |
|---|---|
| nodeFocusChanged | Event invoked on the main thread when the user changes the screen reader focus by navigating to a different accessibility node. |
| screenReaderStatusChanged | Event invoked on the main thread when the user turns the screen reader on or off. |
Enums
Enum | Description |
|---|---|
| AssistiveSupport.ScreenReaderStatusOverride | Options to determine the status of the screen reader. |