# GetElement(uint)

> Gets an element by ID.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Android.Gradle](/engine/6000.0/script-reference/unity/android/gradle.md)
* **Assembly:** Unity.Android.Gradle

```csharp
public BaseElement GetElement(uint id)
```

### Parameters

**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): The ID of the element to get.

### Returns

| Type                                                                               | Description                                                                 |
| ---------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| [BaseElement](/engine/6000.0/script-reference/unity/android/gradle/baseelement.md) | The element with the passed-in ID when one exists. Otherwise, returns null. |
