# TryGetNode(int, out AccessibilityNode)

> Tries to get the node in this hierarchy that has the given ID.

## Definition

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

## TryGetNode(int, AccessibilityNode)

```csharp
public bool TryGetNode(int id, out AccessibilityNode node)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The ID of the node to retrieve.**** (\[AccessibilityNode]\(/engine/6000.0/script-reference/unityengine/accessibility/accessibilitynode)): The valid node with the associated ID, or `null` if no such node exists in this hierarchy.

### Returns

| Type                                                          | Description                                          |
| ------------------------------------------------------------- | ---------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if a node is found and false otherwise. |
