Widget API: GameTooltip:SetUnit

From AddOn Studio
Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GameTooltip SetUnit to API GameTooltip SetUnit without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Widget API ← GameTooltip < SetUnit

Sets the UnitID for the tooltip.


Arguments

("unit")


"unit"
String - UnitID of the wanted Unit ("player,"party1".."party4","target","raid1".."raid40", etc.)

Example

GameTooltip_SetDefaultAnchor(GameTooltip, UIParent)
GameTooltip:SetUnit("player")
GameTooltip:Show()

Shows the GameTooltip with information about the player.