# On Button Hold

The **On Button Hold** trigger activates **repeatedly** while a **TextMeshPro Button** is being held down.

#### Inside the Trigger

**Game Object**\
A reference to the **GameObject** containing the **Button** component.

By default, this is set to **Self**, meaning the trigger will monitor a button on the same GameObject it’s attached to.

**Delay**\
Time in seconds between each execution while the button is held down.

For example, setting a **Delay** of `0.2` will execute the instructions every 0.2 seconds as long as the button remains pressed.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fullscreen.no/info/game-creator-2-assets/herobridge/triggers/on-button-hold.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
