label
A short description of the accessibility node.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEngine.Accessibility
- Assembly: UnityEngine.AccessibilityModule
public string label { get; set; }
Remarks
The node's label should provide a concise, human-readable description of the visual element represented by the node.
The label is essential to screen reader users because it provides the text that the screen reader announces when a user focuses on the node to communicate the purpose or content of the visual element that the node represents.
Generally, all accessibility nodes should have an appropriate label. Nodes with an empty label can cause unwanted screen reader behavior.
A good label is short, informative, and does not include the node's type. For example, the label for a Save button should be "Save", not "Save button". To ensure proper screen reader intonation, start the label with a capital letter and avoid ending it with a period.