Widget API: Region:GetName

Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API Region GetName to API Region GetName without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Widget API ← Region < GetName

This function obtains the value of the current XML object. E.g. WorldFrame:GetName() returns "WorldFrame".

local name = region:GetName()

ParametersEdit

ReturnsEdit

  • name (string) - containing the name of the object

ExampleEdit

local name = PlayerFrame:GetName()
Result
name = "PlayerFrame"

DetailsEdit

Obtains the XML name of an object. Great for a lot of uses, like generic object handling functions.

NotesEdit