> For the complete documentation index, see [llms.txt](https://docs.overthereality.ai/over-sdk-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overthereality.ai/over-sdk-manual/sdk-window/presets/over_clickableobject.md).

# 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>
