Add tooltip content
This page explains how to provide the content of the tooltip, either via Inspector or runtime scripting.
Option 1: Editor-Assigned Tooltip
Add a
TooltipObject
to any GameObject.Add
HoverObject
to the it (by following instructions in inspector)Set information type in inspector (Information tab - this is the content type to display on tooltip UI)
Optionally adjust display behavior:
Delay, position
β Done β this object now shows a tooltip when hovered!
Option 2: Runtime-Assigned Tooltip
Retrieve your TooltipObject
component and assign information at runtime.
Option 3: Show Tooltips Manually
For full manual control:
You can provide a custom position and override behavior.
You can provide custom delay
Useful for tutorials, tooltips triggered by events, etc.
To hide the tooltip manually only when information matches:
Last updated