frame
The Rect represents the position in screen coordinates of the node in the UI. This can be set directly but it is recommended that AccessibilityNode.frameGetter is set instead, so that the value can be recalculated when necessary.
阅读时间1 分钟最后更新于 2 个月前
Definition
- Type: Property
- Namespace: UnityEngine.Accessibility
- Assembly: UnityEngine.AccessibilityModule
public Rect frame { get; set; }
Remarks
If AccessibilityHierarchy.RefreshNodeFrames is called, the value of the AccessibilityNode.frame is set to Rect.zero if AccessibilityNode.frameGetter is not set.