<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/NavigationMeshResource/init(named:in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation22NavigationMeshResourceC5named2inACSS_So8NSBundleCSgtYaKcfc::OverloadGroup"
  },
  "title" : "init(named:in:)"
}
-->

# init(named:in:)

Asynchronously creates a NavigationMeshResource by importing an existing one from a Bundle.
The name is the path of the NavigationMeshResource within the bundle.
The bundle is the app package that contains the NavigationMeshResource. If nothing is specified, then the main bundle is used.
This loads an existing Navigation Mesh and will not process and create a new one.

```
convenience init(named name: String, in bundle: Bundle? = nil) async throws
```

---

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)