# TryGetChild(int, out ElementNode)

> Tries to get a child VisualElementAssetReferenceTable.ElementNode by its authoring ID.

## Definition

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

## TryGetChild(int, ElementNode)

```csharp
public bool TryGetChild(int id, out VisualElementAssetReferenceTable.ElementNode elementNode)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The authoring-id to find in the document.**** (\[ElementNode]\(/engine/6000.5/script-reference/unityengine/uielements/visualelementassetreferencetable/elementnode)): The found element node matching `id`.

### Returns

| Type                                                          | Description                                                                          |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if an element with a matching authroing-id could be found; otherwise `false`. |
