Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


frameGetter

Delegate that calculates the frame of the accessibility node, automatically keeping it up-to-date.
Read time 1 minuteLast updated 8 days ago

Definition

public Func<Rect> frameGetter { get; set; }

Remarks

The node's frame can be set either through this delegate or through the _frame property. Using this delegate should simplify the update of the node's frame by automatically keeping it in sync with the coordinates of the visual element represented by the node.
If the _frame is not set, it gets its value from this delegate.
Note: If this delegate is not set, calling AccessibilityHierarchy.RefreshNodeFrames sets the _frame to _zero.