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

AssistiveSupport

class in UnityEngine.Accessibility

/

Implemented in:UnityEngine.AccessibilityModule

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

Access point to APIs that enable applications made with Unity to support assistive technologies.


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) - RuntimePlatform.IPhonePlayer - RuntimePlatform.OSXPlayer - RuntimePlatform.WindowsPlayer

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.

Events

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