Index | Collapse All Expand All

SetParent Method
Control Class Members See Also

Beta Documentation - Subject to change.
Sets the parent of the control.

# Syntax

Lua
    function Control:SetParent(value);

#### Parameters

value
  Type: Control
  The desired parent. If this is nil, the control will be unparented.

# Remarks

Changes the parent of a control. This will remove it from its previous parent and add it to the new one if it is not nil.

# See Also

- Control
- Turbine.UI