🔷Tooltip Display Triggers

Objects can show tooltips automatically when hovered or interacted with.

To enable this:

  1. Add a TooltipObject to your GameObject.

  2. Assign a TooltipInformation type to define what it should display (e.g., text, icon, or stat fields).

  3. Tooltips will appear based on your settings:

    • On hover

    • After delay

    • When cursor is stationary

Optional: Use TooltipObjectDetector to automatically detect objects with tooltips using raycasts.

Utility Components

There are two simple utility scripts provided that you can optionally use in the Editor or at runtime..

  • ToggleTooltipTrigger - Component which allows for showin and hiding information manually, like with a button interaction through a TooltipObject reference.

  • DismissTooltipTrigger - Allows simple dismissal of the tooltip, specified or all. Also good use for hiding a tooltip when button is pressed (on tooltip itself or elsewhere).

Last updated