Version: 2023.2
LanguageEnglish
  • C#

AccessibilityNode

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

An instance of a node in the AccessibilityHierarchy, representing an element in the UI that the screen reader can read, focus, and execute actions on.

Properties

allowsDirectInteraction Whether this node allows direct touch interaction for users.
children The children nodes of the node.
frame The Rect representing the position of the node in the UI. Can be set directly but it is recommended that CalculateFrame is set instead so that the value can be recalculated when necessary.
frameGetter Optional delegate that can be set to calculate the frame for the node instead of setting a flat value. If the frame of the node may change over time, this delegate should be set instead of giving a one time value for the frame.
hint Additional information about the accessibility node (e.g. the result of performing an action on the node).
id The ID of this node.
isActive Whether this node is active in the hierarchy.
isFocused Whether the node is focused by the screen reader.
label A string value that succinctly describes this node. The label is the first thing read by the screen reader when a node is focused.
parent The parent of the node. If the node is at the root level, the parent value is null.
role The role for the node.
state The state for the node.
value The value of this node.

Public Methods

GetHashCode A hash used for comparisons.
ToString Provides a debugging string.

Events

focusChanged Called when the node gains or loses screen reader focus.
selected Calls the methods in its invocation list when this node is selected by the screen reader.