Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Sets a texture to a unit's 2D portrait.
SetPortraitTexture(textureObject, unitToken [, disableMasking])
Arguments[]
Example[]
local f = CreateFrame("Frame")
f:SetPoint("CENTER")
f:SetSize(64, 64)
f.tex = f:CreateTexture()
f.tex:SetAllPoints(f)
SetPortraitTexture(f.tex, "player")
Patch changes[]
Patch 10.0.0 (2022-10-25): Added disableMasking
argument.