Creating Tooltip UI
This page shows how to create your visual tooltip prefabs and register them with the system.
Step 1: Create a Tooltip UI Prefab
In your Canvas, create a new UI GameObject
Create your own layout or drag in one of the (20+) UI prefabs available
Add component for displaying tooltip information
TextTooltipUI
for basic textFlexibleTooltipUI
for rich data values (texts, sprites, etc.)Your own custom
ATooltipUI
subclass
Style it using standard Unity UI: add background, padding, shadow, etc.
Prefab it into your assets folder (optional but recommended).
Step 2: Register Tooltip UIs
Select your TooltipManager.
Assign either your prefab or world instances to the tooltip list on manager.
Or register tooltip at runtime
π§ͺ Notes
Tooltips will automatically use the matching UI type based on the
TooltipInformation
they are assigned.Want a unique tooltip style per item type? Just subclass
ATooltipInformation
and create a matchingATooltipUI
.
Last updated