However, when the GameTooltip is being shown for a world object, it does not seem to be using OnTooltipSetUnit. Does anyone know what it is doing, or what I can do to call AddLine() appropriately?
Even that would be acceptable to a point as I have its localized name. What I need to know is when it is going to be shown. I do not know the mechanism that causes that to happen.
Even that would be acceptable to a point as I have its localized name. What I need to know is when it is going to be shown. I do not know the mechanism that causes that to happen.
Not sure if this applies in 100% of cases, but checking if the tooltip's owner is UIParent works for NPCs and all world objects that display the tooltip.