Originally Posted by Haleth
You still need to use WorldFrame:GetChildren() to actually iterate through potential frames. Then you can check them by name.
|
Actually...
Lua Code:
local index = 1
local addon = CreateFrame('Frame')
addon:SetScript('OnUpdate', function()
while _G['NamePlate' .. index] do
local frame = _G['NamePlate' .. index]
-- do whatever
index = index + 1
end
end)
addon:Show()