Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Returns the object's global name.

name = FrameScriptObject:GetName()

Returns[]

name
string - The name of the frame. This is also a variable in the global namespace.

Example[]

This is the name param from CreateFrame. Returns nil for anonymous frames.

/dump CreateFrame("Frame", "SomeFrame"):GetName() -- "SomeFrame"
/dump CreateFrame("Frame"):GetName() -- nil

This is the name attribute in XML.

<Frame name="HelloFrame"></Frame>
/dump HelloFrame:GetName() -- "HelloFrame"
Advertisement