Skip to content

format

typescript
Control.SetParent(parent, keepWorldPos)

class: Control

description

Set the parent of the control.

parameter

param_nametypedescription
parentControlThe parent control.
keepWorldPosboolean?

reture

typedescription
void

code example