# generateAccessibilityHierarchy

> Whether this document's content is included in the automatically generated accessibility hierarchy. The default value is true.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
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 document contributes nothing to the generated hierarchy, including the content of any child documents. Changing the value on a live document adds or removes its content in place, without rebuilding the rest of the generated hierarchy.
