# Tooltip (Pro)

{% hint style="warning" %}
This feature is only available in realvirtual.io Professional
{% endhint %}

The **RuntimeTooltip** system allows you to display contextual tooltips in your simulation, helping users understand the function or content of scene objects at runtime.

<figure><img src="/files/tiCMrut3JUp0ImOr8RKQ" alt=""><figcaption><p>Runtime tooltip</p></figcaption></figure>

#### Features

* Works with any 3D object in the scene
* Fully supports **TextMeshPro rich text** (bold, color, line breaks)
* Dynamically displayed on hover or selection
* Easy to integrate via prefab

## Required Components

**1. Tooltip Controller (Scene-Level)**

You must add the Tooltip Controller to your scene. This controller handles the positioning and display of all tooltips.

> 📦 **Prefab**:\
> `Assets/realvirtual/Professional/SceneSelection/TooltipController.prefab`

Drag and drop this prefab into your scene to enable the tooltip system.

**2. RuntimeTooltip Script (Object-Level)**

Attach the `RuntimeTooltip` script to any GameObject you want to annotate with a tooltip.

**Steps:**

1. Select the target GameObject (e.g., a cabinet).
2. Add the component: `Runtime Tooltip (Script)`
3. Enter your tooltip text in the **Text** field using TextMeshPro for formatting if needed.

**Example:**

```html
<b><color=#FFD700>Cabinet</color></b>\nContains control electronics and power supply
```


---

# 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://doc.realvirtual.io/components-and-scripts/scene-interaction/tooltip-pro.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.
