API ScriptRegion SetParent

Sets the parent of the region.
 ScriptRegion:SetParent([parent])
==Arguments==
:;parent: - Reference to the parent widget. Unsets the parent if omitted.
==Details==
* Children inherit alpha and scale unless disallowed with and .
==Example==
Sets the parent of a frame, the effective scale will be 0.64 * 0.5 = 0.32
local f = CreateFrame("Frame")
f:SetScale(0.5)
f:SetParent(UIParent)
print(UIParent:GetScale()) -- 0.63999998569489
print(f:GetScale(), f:GetEffectiveScale()) -- 0.5, 0.31999999284744
==Patch changes==