GameTooltip:GetUnit
Jump to navigation
Jump to search
Returns the name and UnitId of the unit displayed on a GameTooltip.
unitName, unitId = GameTooltip:GetUnit()
Returns
- unitName
- string - Name of the unit current assigned to a tooltip.
- unitId
- string - UnitId assigned using GameTooltip:SetUnit() or by the game engine during mouseover.
Details
- Returns nil when the tooltip is not shown, or when showing something other than a unit.