ESODecoded

EVENT_UNIT_ATTRIBUTE_VISUAL_ADDED

ESO Lua API function — used by 49 of the 3,030 addons we indexed (combined 4,783,961 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

EVENT_UNIT_ATTRIBUTE_VISUAL_ADDED(string unitTag, [UnitAttributeVisual|#UnitAttributeVisual] unitAttributeVisual, [DerivedStats|#DerivedStats] statType, [Attributes|#Attributes] attributeType, [CombatMechanicFlags|#CombatMechanicFlags] powerType, number value, number maxValue, integer sequenceId)

Real usage — from Azurah - Interface Enhanced

		if (db.healthOverlay > 1 and db.healthOverlayShield) then
			EVENT_MANAGER:RegisterForEvent(self.name .. 'Attributes', EVENT_UNIT_ATTRIBUTE_VISUAL_ADDED, OnShieldUpdate)
			EVENT_MANAGER:RegisterForEvent(self.name .. 'Attributes', EVENT_U

Short excerpt from the shipping addon Azurah - Interface Enhancedits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
Azurah - Interface Enhanced1,462,318
Foundry Tactical Combat (FTC)1,097,601
CrutchAlerts916,918
Qcell's Rockgrove Helper322,084
Bandits Companions and Pets192,393
Purge Tracker101,339