ESODecoded

GetUnitClass

ESO Lua API function — used by 37 of the 3,030 addons we indexed (combined 2,401,773 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetUnitClass(string unitTag)

Returns: string className

Real usage — from Foundry Tactical Combat (FTC)

  FTC.Player.race = GetUnitRace('player')
  FTC.Player.class = GetUnitClass('player')
  FTC.Player:GetLevel()

Short excerpt from the shipping addon Foundry Tactical Combat (FTC)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

AddonTotal downloads
Foundry Tactical Combat (FTC)1,097,601
Wykkyd Toolbar567,448
Provinatus - Heads Up Display91,821
More Target Information83,959
RAETIA InfoHub55,668
Omni Stats49,188