Button
The accessibility node behaves like a button.
読み終わるまでの所要時間 1 分最終更新 23日前
Definition
- Type: Field
- Namespace: UnityEngine.Accessibility
- Assembly: UnityEngine.AccessibilityModule
Button = 1
Remarks
If this role is set on a node, the screen reader announces the node as a "button". On Android and macOS, after a short pause, it also provides instructions on how to activate the node.
Subscribe to the AccessibilityNode.invoked event to inform the screen reader that the node can be activated, and perform an appropriate action when the user activates it, such as invoking the button represented by the node.