Can anyone help with some information on how to change the nameplates position? would like to move them a bit higher above the player/npc.
Would also like to keep the default blizzard UI, without using and addon such as TidyPlates.
I also asked chat GPT for a script and provided with something like this [see below] but it did not work.
-- Function to adjust the height of nameplates
local function AdjustNameplateHeight()
-- Iterate through each visible nameplate
for i = 1, select("#", C_NamePlate.GetNamePlates()) do
local nameplate = select(i, C_NamePlate.GetNamePlates())
-- Adjust the height of the nameplate
nameplate:SetHeight(20) -- Set the desired height here (in pixels)
end
end
-- Register an event handler to execute the function when nameplates are shown or updated
local frame = CreateFrame("Frame")
frame:RegisterEvent("NAME_PLATE_CREATED")
frame:RegisterEvent("NAME_PLATE_UNIT_ADDED")
frame:SetScript("OnEvent", function(self, event, ...)
AdjustNameplateHeight()
end)