<!--
{
  "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/NavigationController/currentPath",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation20NavigationControllerV11currentPathSayAA0C12MeshResourceC0F4NodeVGvp"
  },
  "title" : "currentPath"
}
-->

# currentPath

The computed path to the target position found by requestPath(). If called before the pathfind completes,
a partial path will be returned. This partial path may be suboptimal.
If the pathfind failed or was not requested, the function will return an empty array.

```
var currentPath: [NavigationMeshResource.PathNode] { get }
```

---

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)