API GameTooltip SetUnit

Makes a GameTooltip widget display information about a unit. GameTooltip:SetUnit("unit")

Arguments

 * unit : String (unitId) - Unit to display the tooltip for, e.g. "player" or "target".

Example
The following snippet displays a tooltip with information about the player. GameTooltip_SetDefaultAnchor(GameTooltip, UIParent) GameTooltip:SetUnit("player") GameTooltip:Show