Hi,

How can I show an ability tooltip via custom script when the player hovers over a button?

I'm creating a custom talent tree and I already have tried this: ORK.GUI.Tooltip.ForceTooltip (Ability.GetTypeContent (), 0, true); but this obviously doesn't work as it only shows the type content. Ability.GetContent () returns GUIContent which I don't know how to use.
  • You'll need to get the ability from a combatant, or create a new AbilityShortcut for it.

    E.g. getting it from a combatant:
    AbilityShortcut ability = combatant.Abilities.Get(id);
    Creating a shortcut:
    AbilityShortcut ability = new AbilityShortcut(id, level, AbilityState.None);
    id is the ID/index of the ability.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.