# GetButton(int)

> Returns the button at the specified index.

## Definition

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

```csharp
public Button GetButton(int index)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

### Returns

| Type                                                                       | Description |
| -------------------------------------------------------------------------- | ----------- |
| [Button](/engine/6000.3/script-reference/unityengine/uielements/button.md) |             |
