Skip to content

Components

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

FieldScript nameKindDefaultWhat it does
Texttexttext, several linesTooltipWhat it says. Empty shows nothing at all, however long the pointer rests.
Delaydelaynumber, 0 to 5, step 0.050.5How long the pointer must hold still on the node first, in seconds.
Placementplacementone of Above, Below, Left, RightBelowWhich side of the node it opens on.