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

AccessibilityState.Disabled

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 visual element represented by the accessibility node is currently disabled and does not respond to user interaction.


This state is purely informative. It indicates the status of the visual element that the node represents. Setting this state does not prevent the user from interacting with the node (for example, the AccessibilityNode.invoked event is still triggered if the user wants to activate the node). To prevent user interaction with the visual element represented by the node, make sure it is disabled and restrict its actions in your accessibility event handlers (for example, return false in your event handler for AccessibilityNode.invoked).

Platform-specific behavior

  • Android: If this role is set on a node, the screen reader announces the node as "disabled".
  • iOS: If this role is set on a node, the screen reader announces the node as "dimmed".
  • macOS: If this role is set on a node, the screen reader announces the node as "dimmed".
  • Windows: If this role is set on a node, the screen reader announces the node as "disabled".
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961