GetRawUnitName
ESO Lua API function — used by 104 of the 3,030 addons we indexed (combined 22,561,179 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetRawUnitName(string unitTag)Returns: string rawName
Real usage — from Tamriel Trade Centre
function TamrielTradeCentre:GetCurrentKioskID()
local npcName = zo_strformat(SI_UNIT_NAME, GetRawUnitName("interact"))
npcName = string.lower(npcName)Short excerpt from the shipping addon Tamriel Trade Centre — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Tamriel Trade Centre | 5,234,232 |
| LibCombat | 5,017,654 |
| RaidNotifier Updated | 2,789,746 |
| pChat (Chat customization & help: look/notification/sound/automation/history) | 1,832,805 |
| Votan's Fisherman | 1,662,523 |
| Loot Log | 1,608,502 |