# TryGetValue(in HierarchyNode, out T)

> Gets the value associated with the specified HierarchyNode.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Hierarchy](/engine/6000.7/script-reference/unity/hierarchy.md)
* **Assembly:** UnityEngine.HierarchyCoreModule

## TryGetValue(HierarchyNode, T)

```csharp
public bool TryGetValue(in HierarchyNode node, out T value)
```

### Parameters

**** (\[HierarchyNode]\(/engine/6000.7/script-reference/unity/hierarchy/hierarchynode)): The hierarchy node.**** (T): The value.

### Returns

| Type                                                          | Description                                                                                                                                                                                                                                               |
| ------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if the [HierarchyNodeMapUnmanaged\<T>](/engine/6000.7/script-reference/unity/hierarchy/hierarchynodemapunmanaged1.md) contains the specified [HierarchyNode](/engine/6000.7/script-reference/unity/hierarchy/hierarchynode.md), `false` otherwise. |
