generateAccessibilityHierarchy
Whether this renderer's content is included in the automatically generated accessibility hierarchy. The default value is true.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public bool generateAccessibilityHierarchy { get; set; }
Remarks
This property only takes effect while the experimental Generate Accessibility
Hierarchies for Runtime Panels setting is enabled in Project Settings > UI
Toolkit. An opted-out renderer contributes nothing to the generated hierarchy, including the content of any nested Panel Renderers. Changing the value on a live renderer adds or removes its content in place, without rebuilding the rest of the generated hierarchy.