Returns information about the unit displayed in the tooltip

Signature:

name, unit = GameTooltip:GetUnit()

Returns:

  • name - Name of the unit displayed in the tooltip, or nil (string)
  • unit - Unit identifier of the unit, or nil if the unit cannot be referenced by a unitID (string, unitID)