📚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

  1. In your Canvas, create a new UI GameObject

  2. Create your own layout or drag in one of the (20+) UI prefabs available

  3. Add component for displaying tooltip information

    • TextTooltipUI for basic text

    • FlexibleTooltipUI for rich data values (texts, sprites, etc.)

    • Your own custom ATooltipUI subclass. This component is responsible for reading information and delegating it to the UI elements.

  4. Style it using standard Unity UI: add background, padding, shadow, etc.

  5. Prefab it into your assets folder (optional but recommended).


Step 2: Register Tooltip UIs

  1. Select your TooltipManager.

    1. Assign either your prefab or world instances to the tooltip list on manager.

    2. 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 matching ATooltipUI.

Last updated