API Region SetParent

Defines the parent object of a from which many properties are inherited (scale, visibility, etc.).

region:SetParent(parent) region:SetParent("parent")

Argument

 * parent
 * - Direct table reference to the new parent
 * String - Name of the global reference to the new parent, as in _G["parent"]

Example
local myFrame = CreateFrame("Frame") print(myFrame:GetEffectiveScale)        -- 1 myFrame:SetParent(UIParent) print(myFrame:GetEffectiveScale)        -- 0.89372  (it is now inheriting UIParent's scale)