frameGetter
Delegate that calculates the frame of the accessibility node, automatically keeping it up-to-date.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine.Accessibility
- Assembly: UnityEngine.AccessibilityModule
public Func<Rect> frameGetter { get; set; }
Remarks
The node's frame can be set either through this delegate or through the AccessibilityNode.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 AccessibilityNode.frame is not set, it gets its value from this delegate.
Note: If this delegate is not set, calling AccessibilityHierarchy.RefreshNodeFrames sets the AccessibilityNode.frame to Rect.zero.