# DetachChildren Detach all child transforms. ## Syntax ```cpp void DetachChildren(); ``` ## Remarks Removes all children from this transform. The children become root-level transforms (their parent is set to `nullptr`). ## See Also - [SetParent](set-parent) - [GetChild](get-child) ## Examples ```cpp void Example(TransformComponent* transform) { transform->DetachChildren(); } ```