# OVER\_ClickableObject

{% hint style="info" %}
Want to learn more about setting up and using the **Clickable Object** script? Check out our detailed guide on creating and configuring interactive objects [here](/over-sdk-manual/cook-book/cooking-with-clicks-mastering-over-clickable-objects-in-ar.md)
{% endhint %}

The **OVER\_ClickableObject** preset creates an interactive object in Unity, consisting of a cube and the **OverClickableObjectUVS** script. This preset is designed to simplify the implementation of touch or click-based interactions in your scene.&#x20;

The **OverClickableObjectUVS** script attached to the cube allows the object to respond to user interactions such as **click** , **press** , and **long press** . These interactions are exposed through Unity’s **UnityEvent** system, enabling you to define custom behaviors directly in the Inspector or manage them using **Unity Visual Scripting** .

<figure><img src="/files/srWSSIFjAfEtWmVB2v7O" alt="" width="242"><figcaption></figcaption></figure>

The script provides three main interaction events

* **Click** : Triggered when the user taps or clicks on the object.
* **Press** : Triggered when the user presses down on the object.
* **Long Press** : Triggered when the user holds their touch or click for an extended duration.

<figure><img src="/files/IUMgarMWRQ4NCnyUqvPR" alt="" width="249"><figcaption></figcaption></figure>

The script integrates seamlessly with **Unity Visual Scripting** , enabling you to visually design complex interaction logic without writing code. While the preset includes a default cube as an example, you can easily replace it with any 3D model to suit your project’s needs.

<figure><img src="/files/8F0zjRBOIsNt3vglAxLG" alt="" width="319"><figcaption></figcaption></figure>

**Simulate Events in the Inspector**

To help you test and debug your interactions, the **OverClickableObjectUVS** script includes a **Simulate** section in the Inspector. This feature allows you to manually trigger the events without needing to interact with the object in Play Mode:

* Select the event you want to simulate (**Click** , **Press** , or **Long Press** ) from the dropdown menu.
* Press the **Trigger Event** button to simulate the selected event and observe how your custom behaviors respond in the Unity Editor.

This simulation capability is particularly useful during development, as it saves time by allowing you to test your interactions without relying on physical input devices or running the application on a target platform.

<figure><img src="/files/CkLS8Gk5xDQMlVyZi9fa" alt=""><figcaption></figcaption></figure>


---

# 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.overthereality.ai/over-sdk-manual/sdk-window/presets/over_clickableobject.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.
