This page shows how to create your visual tooltip prefabs and register them with the system.
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 text
TextTooltipUI
FlexibleTooltipUI for rich data values (texts, sprites, etc.)
FlexibleTooltipUI
Your own custom ATooltipUI subclass. This component is responsible for reading information and delegating it to the UI elements.
ATooltipUI
Style it using standard Unity UI: add background, padding, shadow, etc.
Prefab it into your assets folder (optional but recommended).
Select your TooltipManager.
Assign either your prefab or world instances to the tooltip list on manager.
Or register tooltip at runtime
Tooltips will automatically use the matching UI type based on the TooltipInformation they are assigned.
TooltipInformation
Want a unique tooltip style per item type? Just subclass ATooltipInformation and create a matching ATooltipUI.
ATooltipInformation
Last updated 6 months ago