<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/Entity/loadBodyTracked(named:in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation6EntityC15loadBodyTracked5named2inAA0efC0CSS_So8NSBundleCSgtKFZ"
  },
  "title" : "loadBodyTracked(named:in:)"
}
-->

# loadBodyTracked(named:in:)

Synchronously loads a body-tracked entity from a bundle.

```
@MainActor @preconcurrency static func loadBodyTracked(named name: String, in bundle: Bundle? = nil) throws -> BodyTrackedEntity
```

## Parameters

`name`

The base name of the file to load, omitting the filename extension.

`bundle`

The bundle containing the file. Use `nil` to search the app’s
main bundle.

## Return Value

The root entity in the loaded file, cast as a [`BodyTrackedEntity`](/documentation/RealityKit/BodyTrackedEntity).

## Discussion

Loading an [`Entity`](/documentation/RealityKit/Entity) with this method blocks the main actor because it’s synchronous, so only call it from a command-line application.
The method can stall a regular app, which makes it visibly hitch, and the system terminates an app if its UI becomes unresponsive.
See [`init(named:in:)`](/documentation/RealityKit/Entity/init(named:in:)) for an example that demonstrates how to safely load content.

---

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)