RefreshNodeFrames()
Refreshes the AccessibilityNode.frame of all nodes in the accessibility hierarchy.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Accessibility
- Assembly: UnityEngine.AccessibilityModule
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 parameter).
nullCall 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.