# AddNode(string, AccessibilityNode)

> Creates a new AccessibilityNode with the given label and adds it to the hierarchy under the given parent.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Accessibility](/engine/6000.5/script-reference/unityengine/accessibility.md)
* **Assembly:** UnityEngine.AccessibilityModule

```csharp
public AccessibilityNode AddNode(string label = null, AccessibilityNode parent = null)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): A label that succinctly describes the node.**** (\[AccessibilityNode]\(/engine/6000.5/script-reference/unityengine/accessibility/accessibilitynode)): The parent of the new node, or `null` if the node should be placed at the root level.

### Returns

| Type                                                                                                | Description                                                |
| --------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| [AccessibilityNode](/engine/6000.5/script-reference/unityengine/accessibility/accessibilitynode.md) | The node created and added to the accessibility hierarchy. |
