As the title says, I could make a playermodel frame which shows a spell animation like Weakauras does when logged in. But after I hide it, I can't show it again until reloadui
Code:
local function CreateAniFrame(parent, path, size, pos, zxy)
local model = CreateFrame("Playermodel", nil, parent)
model:SetSize(unpack(size))
model:SetPoint("CENTER", parent, "CENTER", pos[1], pos[2])
model:SetModel(path)
model:SetPosition(unpack(zxy))
end
FYI, it's not a unit portrait or something, it's about spell effect animation. Could anyone give me some clues or some references to fix the issue?