Skip to content

Get Unit Spec Info

Core Helper

Scans a player tooltip and returns ElvUI’s cached specialization metadata for that unit.

NamespaceEModuleCoreLifecyclestable
E:GetUnitSpecInfo(unit)

Scans a player tooltip and returns ElvUI’s cached specialization metadata for that unit.

unit: Player unit token to inspect.

Spec info table with id, index, classFile, localized names, icon, and role when available.

local specInfo = E:GetUnitSpecInfo("target")

Useful for addons that need spec/class information without duplicating ElvUI tooltip parsing.

Source: ElvUI/Game/Shared/General/API.lua:353