Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RefreshNodeFrames()

Refreshes the AccessibilityNode.frame of all nodes in the accessibility hierarchy.
Read time 1 minuteLast updated 12 days ago

Definition

public void RefreshNodeFrames()

Remarks

This is a convenience method that updates the AccessibilityNode.frame of all nodes in the accessibility hierarchy based on AccessibilityNode.frameGetter and notifies the screen reader of these updates by calling IAccessibilityNotificationDispatcher.SendLayoutChanged (with a
null
parameter).
Call this method when most or all of the nodes on the screen require a layout update. For example, when the user scrolls the application's interface, or when the orientation of the screen changes.
Note: For nodes with no AccessibilityNode.frameGetter set, this method resets their AccessibilityNode.frame to Rect.zero.