📚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
TextTooltipUIfor basic textFlexibleTooltipUIfor rich data values (texts, sprites, etc.)Your own custom
ATooltipUIsubclass. This component is responsible for reading information and delegating it to the UI elements.
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
TooltipInformationthey are assigned.Want a unique tooltip style per item type? Just subclass
ATooltipInformationand create a matchingATooltipUI.
Last updated