Files
XCEngine/docs/api/components/transform-component/detach-children.md

27 lines
396 B
Markdown
Raw Normal View History

# 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();
}
```