# RepeatButton

> Constructor.

## Definition

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

## RepeatButton()

Constructor.

```csharp
public RepeatButton()
```

## RepeatButton(Action, long, long)

Constructor.

```csharp
public RepeatButton(Action clickEvent, long delay, long interval)
```

### Parameters

**** (\[Action]\(https\://learn.microsoft.com/dotnet/api/system.action)): The action to execute when the button is pressed.**** (\[long]\(https\://learn.microsoft.com/dotnet/api/system.int64)): The initial delay before the action is executed for the first time. Value is defined in milliseconds.**** (\[long]\(https\://learn.microsoft.com/dotnet/api/system.int64)): The interval between each execution of the action. Value is defined in milliseconds.
