Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


KeyboardKey

The accessibility node behaves like a keyboard key.
Read time 1 minuteLast updated 7 days ago

Definition

KeyboardKey = 5

Remarks

On mobile platforms, this role enables touch typing, which allows the user to activate the node by performing a single-tap gesture instead of the standard double-tap gesture.
Subscribe to the _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 key represented by the node.
Platform support
  • On Android, this role is only supported starting with Android 10 (API level 29).
  • This role has no effect on desktop platforms.
Additional Resources: