Tooltip
Text shown once the pointer holds still on the node for a moment โ what a locked door wants, or why an upgrade button is greyed out. Flips to the opposite side, and stays clear of the screen's edge, when its side has no room.
On this page
Add it
Add component โ TooltipComponent in the Inspector, on the node that should carry it.
From a script
A script on the same node writes these fields by name. TooltipComponent is the name to pass.
rgs
set_text("TooltipComponent", "text", "Tooltip");
set_number("TooltipComponent", "delay", 0.5); Fields
| Field | Script name | Kind | Default | What it does |
|---|---|---|---|---|
| Text | text | text, several lines | Tooltip | What it says. Empty shows nothing at all, however long the pointer rests. |
| Delay | delay | number, 0 to 5, step 0.05 | 0.5 | How long the pointer must hold still on the node first, in seconds. |
| Placement | placement | one of Above, Below, Left, Right | Below | Which side of the node it opens on. |