<!--
{
  "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/NavigationMeshComponent",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation23NavigationMeshComponentV"
  },
  "title" : "NavigationMeshComponent"
}
-->

# NavigationMeshComponent

A component that provides the navigation meshes an entity uses to find paths through a scene.

```
struct NavigationMeshComponent
```

## Overview

Attach a navigation mesh component to an entity to supply the walkable surfaces
that pathfinding relies on. Each [`NavigationMeshResource`](/documentation/RealityKit/NavigationMeshResource) in
[`navigationMeshes`](/documentation/RealityKit/NavigationMeshComponent/navigationMeshes) represents a baked region of the
scene that agents with a matching [`NavigationComponent`](/documentation/RealityKit/NavigationComponent) can travel across.

## Topics

### Creating a navigation mesh component

[`init(navigationMeshes:)`](/documentation/RealityKit/NavigationMeshComponent/init(navigationMeshes:))

### Accessing the navigation meshes

[`navigationMeshes`](/documentation/RealityKit/NavigationMeshComponent/navigationMeshes)

The set of NavigationMeshResources.



---

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)