Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GameTooltip GetUnit

Last wiki revision 2021-09-03

Returns the name and UnitId of the unit displayed on a GameTooltip. unitName, unitId = GameTooltip:GetUnit

  • unitName : string - of the unit current assigned to a tooltip.
  • unitId : string - UnitId assigned using or by the game engine during mouseover.
  • Returns nil when the tooltip is not shown, or when showing something other than a unit.

Source

https://warcraft.wiki.gg/wiki/API_GameTooltip_GetUnit · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.