<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/HasHierarchy/children",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation12HasHierarchyPAAE8childrenAA6EntityC15ChildCollectionVvp"
  },
  "title" : "children"
}
-->

# children

The child entities that the entity manages.

```
@MainActor @preconcurrency var children: Entity.ChildCollection { get set }
```

## Discussion

An entity can have any number of child entities.

Use the [`addChild(_:preservingWorldTransform:)`](/documentation/RealityKit/HasHierarchy/addChild(_:preservingWorldTransform:)) method to
add a child to an entity. Use the
[`removeChild(_:preservingWorldTransform:)`](/documentation/RealityKit/HasHierarchy/removeChild(_:preservingWorldTransform:)) method to
remove one from an entity. These methods automatically update the
[`parent`](/documentation/RealityKit/HasHierarchy/parent) properties of the child entities.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)